Permalink
Browse files

Improve comment.line match.

  • Loading branch information...
1 parent 379fbe6 commit ecadf10034e288187635a1a3251ca626d8a10d76 @infininight infininight committed Nov 29, 2011
Showing with 51 additions and 13 deletions.
  1. +51 −13 Syntaxes/ASP.plist
View
@@ -1,5 +1,5 @@
<?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>comment</key>
@@ -49,32 +49,70 @@
<string>meta.function.asp</string>
</dict>
<dict>
- <key>captures</key>
+ <key>begin</key>
+ <string>(^[ \t]+)?(?=')</string>
+ <key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
- <string>punctuation.definition.comment.asp</string>
+ <string>punctuation.whitespace.comment.leading.asp</string>
</dict>
</dict>
- <key>match</key>
- <string>(').*$\n?</string>
- <key>name</key>
- <string>comment.line.apostrophe.asp</string>
+ <key>end</key>
+ <string>(?!\G)</string>
+ <key>patterns</key>
+ <array>
+ <dict>
+ <key>begin</key>
+ <string>'</string>
+ <key>beginCaptures</key>
+ <dict>
+ <key>0</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.definition.comment.asp</string>
+ </dict>
+ </dict>
+ <key>end</key>
+ <string>\n</string>
+ <key>name</key>
+ <string>comment.line.apostrophe.asp</string>
+ </dict>
+ </array>
</dict>
<dict>
- <key>captures</key>
+ <key>begin</key>
+ <string>(^[ \t]+)?(?=REM )</string>
+ <key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
- <string>punctuation.definition.comment.asp</string>
+ <string>punctuation.whitespace.comment.leading.asp</string>
</dict>
</dict>
- <key>match</key>
- <string>(REM ).*$\n?</string>
- <key>name</key>
- <string>comment.line.rem.asp</string>
+ <key>end</key>
+ <string>(?!\G)</string>
+ <key>patterns</key>
+ <array>
+ <dict>
+ <key>begin</key>
+ <string>REM </string>
+ <key>beginCaptures</key>
+ <dict>
+ <key>0</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.definition.comment.asp</string>
+ </dict>
+ </dict>
+ <key>end</key>
+ <string>\n</string>
+ <key>name</key>
+ <string>comment.line.rem.asp</string>
+ </dict>
+ </array>
</dict>
<dict>
<key>match</key>

0 comments on commit ecadf10

Please sign in to comment.