Permalink
Browse files

Improve rendering of symbol list and correct comments.

  • Loading branch information...
tbates authored and infininight committed Jan 19, 2012
1 parent 20f4b11 commit 51b50a925ab27a2e5e942e7ee0158ac85e494d12
Showing with 5 additions and 5 deletions.
  1. +5 −5 Preferences/Symbol List.tmPreferences
@@ -1,20 +1,20 @@
<?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">
+<!DOCTYPE plist PUBLIC "-//Apple//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.mediawiki markup.heading.mediawiki</string>
+ <string>text.html.mediawiki markup.heading</string>
<key>settings</key>
<dict>
<key>showInSymbolList</key>
<integer>1</integer>
<key>symbolTransformation</key>
<string>
- s/\s*=*\s*$//; # strip trailing space and #'s
- s/(?&lt;==)=/ /g; # change all but first # to m-space
- s/^=( *)\s+(.*)/$1$2/; # strip first # and space before title
+ s/\s*=+\s*$//; # strip trailing space and =
+ s/(?&lt;==)=/ /g; # use look behind to change all but first = to space
+ s/^(=)( *)\s?(.*)/ $2$3/; # make the first = a space
</string>
</dict>
<key>uuid</key>

0 comments on commit 51b50a9

Please sign in to comment.