Skip to content
Browse files

Improve comment.line match.

  • Loading branch information...
1 parent 41a88a8 commit e90bcf09988253e8b4cc66396b2146e32d5ccfe7 @infininight infininight committed Nov 21, 2011
Showing with 24 additions and 7 deletions.
  1. +24 −7 Syntaxes/Nemerle.tmLanguage
View
31 Syntaxes/Nemerle.tmLanguage
@@ -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>fileTypes</key>
@@ -14,19 +14,36 @@
<array>
<dict>
<key>begin</key>
- <string>//</string>
+ <string>(^[ \t]+)?(?=//)</string>
<key>beginCaptures</key>
<dict>
- <key>0</key>
+ <key>1</key>
<dict>
<key>name</key>
- <string>punctuation.definition.comment.nemerle</string>
+ <string>punctuation.whitespace.comment.leading.nemerle</string>
</dict>
</dict>
<key>end</key>
- <string>$\n?</string>
- <key>name</key>
- <string>comment.line.double-slash.nemerle</string>
+ <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.nemerle</string>
+ </dict>
+ </dict>
+ <key>end</key>
+ <string>\n</string>
+ <key>name</key>
+ <string>comment.line.double-slash.nemerle</string>
+ </dict>
+ </array>
</dict>
<dict>
<key>begin</key>

0 comments on commit e90bcf0

Please sign in to comment.
Something went wrong with that request. Please try again.