Permalink
Browse files

Improve comment.line match.

  • Loading branch information...
1 parent f8f9e87 commit a6882e5db79ab1d847d679f18cc850e852594683 @infininight infininight committed Nov 13, 2011
Showing with 23 additions and 20 deletions.
  1. +23 −20 Syntaxes/Makefile.plist
View
@@ -44,31 +44,34 @@
<string>punctuation.whitespace.comment.leading.makefile</string>
</dict>
</dict>
- <key>contentName</key>
- <string>comment.line.number-sign.makefile</string>
<key>end</key>
- <string>$\n</string>
- <key>endCaptures</key>
- <dict>
- <key>1</key>
- <dict>
- <key>name</key>
- <string>comment.line.number-sign.makefile</string>
- </dict>
- </dict>
+ <string>(?!\G)</string>
<key>patterns</key>
<array>
<dict>
- <key>match</key>
- <string>\G#</string>
- <key>name</key>
- <string>punctuation.definition.comment.makefile</string>
- </dict>
- <dict>
- <key>match</key>
- <string>\\\n</string>
+ <key>begin</key>
+ <string>#</string>
+ <key>beginCaptures</key>
+ <dict>
+ <key>0</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.definition.comment.makefile</string>
+ </dict>
+ </dict>
+ <key>end</key>
+ <string>\n</string>
<key>name</key>
- <string>constant.character.escape.continuation.makefile</string>
+ <string>comment.line.number-sign.makefile</string>
+ <key>patterns</key>
+ <array>
+ <dict>
+ <key>match</key>
+ <string>\\\n</string>
+ <key>name</key>
+ <string>constant.character.escape.continuation.makefile</string>
+ </dict>
+ </array>
</dict>
</array>
</dict>

0 comments on commit a6882e5

Please sign in to comment.