-
Notifications
You must be signed in to change notification settings - Fork 2
/
Comment Bang.tmPreferences
26 lines (26 loc) · 1.18 KB
/
Comment Bang.tmPreferences
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>name</key>
<string>Symbol List: Comment Bang</string>
<key>scope</key>
<string>comment, source.css comment.block.css, source.scss comment.block.scss</string>
<key>settings</key>
<dict>
<key>showInSymbolList</key>
<integer>1</integer>
<key>symbolTransformation</key>
<string>
s/^\s*\S+\s*//g # strip opening punctuation + spacing
s/(-{2,3}>|\*{1,}\/)\s*$//g # strip common comment endings: (HTML + CF, C-Style) + spacing
s/^[^!].*//g # remove all comments that DON'T begin with a bang
s/^(!-+).*/··································································/g # replace bang with ruler (if applicable) and a \n
s/^!\s*/! /g # replace bang and subsequent spaces with [!] and several (sure?) spaces
s/^(.*?)\n.*/$1\n/g # keep only 1st line (in case of multiline comment) and a \n
</string>
</dict>
<key>uuid</key>
<string>7fdae8f0-c6c7-11e1-9b21-0800200c9a66</string>
</dict>
</plist>