Skip to content

Commit

Permalink
BUG: two header after one another is incorrect in symbol list
Browse files Browse the repository at this point in the history
  • Loading branch information
aziz committed Feb 22, 2015
1 parent fffcf5e commit 92c7331
Show file tree
Hide file tree
Showing 7 changed files with 148 additions and 15 deletions.
14 changes: 7 additions & 7 deletions Note.tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -1427,9 +1427,9 @@
<key>heading1</key>
<dict>
<key>begin</key>
<string>\G(#{1})(?!#)\s*(?=\S)</string>
<string>\G(#{1})(?!#)[ \t]*(?=\S)</string>
<key>end</key>
<string>\s*(#*)$\n?</string>
<string>[ \t]*(#*)\n?$</string>
<key>captures</key>
<dict>
<key>1</key>
Expand All @@ -1455,7 +1455,7 @@
<key>begin</key>
<string>\G(#{2})(?!#)\s*(?=\S)</string>
<key>end</key>
<string>\s*(#*)$\n?</string>
<string>[ \t]*(#*)$\n?</string>
<key>captures</key>
<dict>
<key>1</key>
Expand All @@ -1481,7 +1481,7 @@
<key>begin</key>
<string>\G(#{3})(?!#)\s*(?=\S)</string>
<key>end</key>
<string>\s*(#*)$\n?</string>
<string>[ \t]*(#*)$\n?</string>
<key>captures</key>
<dict>
<key>1</key>
Expand All @@ -1507,7 +1507,7 @@
<key>begin</key>
<string>\G(#{4})(?!#)\s*(?=\S)</string>
<key>end</key>
<string>\s*(#*)$\n?</string>
<string>[ \t]*(#*)$\n?</string>
<key>captures</key>
<dict>
<key>1</key>
Expand All @@ -1533,7 +1533,7 @@
<key>begin</key>
<string>\G(#{5})(?!#)\s*(?=\S)</string>
<key>end</key>
<string>\s*(#*)$\n?</string>
<string>[ \t]*(#*)$\n?</string>
<key>captures</key>
<dict>
<key>1</key>
Expand All @@ -1559,7 +1559,7 @@
<key>begin</key>
<string>\G(#{6})(?!#)\s*(?=\S)</string>
<key>end</key>
<string>\s*(#*)$\n?</string>
<string>[ \t]*(#*)$\n?</string>
<key>captures</key>
<dict>
<key>1</key>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<key>name</key>
<string>Symbol List</string>
<key>scope</key>
<string>text.html.markdown.note markup.heading</string>
<string>text.html.markdown.note markup.heading.1 entity.name</string>
<key>settings</key>
<dict>
<key>showInSymbolList</key>
Expand All @@ -17,19 +17,12 @@
s/:[^ ]+://g; # remove tags
s/\s*#+\s*$//g;
s/^\s*#(#*)\s*/$1/g;
s/^#{5}/ /g;
s/^#{4}/ /g;
s/^#{3}/ /g;
s/^#{2}/ /g;
s/^#{1}/ /g;
s/^(-+)\s*$/ $1/
</string>
<key>symbolIndexTransformation</key>
<string>
s/\s*#+\s*$//g;
</string>
</dict>
<key>uuid</key>
<string>0957d739-b2ba-43fe-85d5-fee7e35ff136</string>
</dict>
</plist>
28 changes: 28 additions & 0 deletions Symbol List - Heading2.tmPreferences
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?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</string>
<key>scope</key>
<string>text.html.markdown.note markup.heading.2 entity.name</string>
<key>settings</key>
<dict>
<key>showInSymbolList</key>
<integer>1</integer>
<key>showInIndexedSymbolList</key>
<integer>1</integer>
<key>symbolTransformation</key>
<string>
s/:[^ ]+://g; # remove tags
s/\s*#+\s*$//g;
s/^\s*#(#*)\s*/$1/g;
s/^/ /g;
</string>
<key>symbolIndexTransformation</key>
<string>
s/\s*#+\s*$//g;
</string>
</dict>
</dict>
</plist>
28 changes: 28 additions & 0 deletions Symbol List - Heading3.tmPreferences
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?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</string>
<key>scope</key>
<string>text.html.markdown.note markup.heading.3 entity.name</string>
<key>settings</key>
<dict>
<key>showInSymbolList</key>
<integer>1</integer>
<key>showInIndexedSymbolList</key>
<integer>1</integer>
<key>symbolTransformation</key>
<string>
s/:[^ ]+://g; # remove tags
s/\s*#+\s*$//g;
s/^\s*#(#*)\s*/$1/g;
s/^/ /g;
</string>
<key>symbolIndexTransformation</key>
<string>
s/\s*#+\s*$//g;
</string>
</dict>
</dict>
</plist>
28 changes: 28 additions & 0 deletions Symbol List - Heading4.tmPreferences
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?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</string>
<key>scope</key>
<string>text.html.markdown.note markup.heading.4 entity.name</string>
<key>settings</key>
<dict>
<key>showInSymbolList</key>
<integer>1</integer>
<key>showInIndexedSymbolList</key>
<integer>1</integer>
<key>symbolTransformation</key>
<string>
s/:[^ ]+://g; # remove tags
s/\s*#+\s*$//g;
s/^\s*#(#*)\s*/$1/g;
s/^/ /g;
</string>
<key>symbolIndexTransformation</key>
<string>
s/\s*#+\s*$//g;
</string>
</dict>
</dict>
</plist>
28 changes: 28 additions & 0 deletions Symbol List - Heading5.tmPreferences
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?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</string>
<key>scope</key>
<string>text.html.markdown.note markup.heading.5 entity.name</string>
<key>settings</key>
<dict>
<key>showInSymbolList</key>
<integer>1</integer>
<key>showInIndexedSymbolList</key>
<integer>1</integer>
<key>symbolTransformation</key>
<string>
s/:[^ ]+://g; # remove tags
s/\s*#+\s*$//g;
s/^\s*#(#*)\s*/$1/g;
s/^/ /g;
</string>
<key>symbolIndexTransformation</key>
<string>
s/\s*#+\s*$//g;
</string>
</dict>
</dict>
</plist>
28 changes: 28 additions & 0 deletions Symbol List - Heading6.tmPreferences
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?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</string>
<key>scope</key>
<string>text.html.markdown.note markup.heading.6 entity.name</string>
<key>settings</key>
<dict>
<key>showInSymbolList</key>
<integer>1</integer>
<key>showInIndexedSymbolList</key>
<integer>1</integer>
<key>symbolTransformation</key>
<string>
s/:[^ ]+://g; # remove tags
s/\s*#+\s*$//g;
s/^\s*#(#*)\s*/$1/g;
s/^/ /g;
</string>
<key>symbolIndexTransformation</key>
<string>
s/\s*#+\s*$//g;
</string>
</dict>
</dict>
</plist>

0 comments on commit 92c7331

Please sign in to comment.