Permalink
Browse files

Improve comment.line match.

  • Loading branch information...
1 parent 3a696d8 commit 3205e987ed2a2aa11accdd55a7d094832441f89c @infininight infininight committed Nov 14, 2011
Showing with 26 additions and 7 deletions.
  1. +26 −7 Syntaxes/Logo.tmLanguage
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>
@@ -51,18 +51,37 @@
<string>string.other.word.logo</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.logo</string>
+ <string>punctuation.whitespace.comment.leading.logo</string>
</dict>
</dict>
- <key>match</key>
- <string>(;).*$\n?</string>
- <key>name</key>
- <string>comment.line.semicolon.logo</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.logo</string>
+ </dict>
+ </dict>
+ <key>end</key>
+ <string>\n</string>
+ <key>name</key>
+ <string>comment.line.semicolon.logo</string>
+ </dict>
+ </array>
</dict>
</array>
<key>scopeName</key>

0 comments on commit 3205e98

Please sign in to comment.