Skip to content

Commit

Permalink
Improve comment.line match.
Browse files Browse the repository at this point in the history
  • Loading branch information
infininight committed Nov 21, 2011
1 parent 6af714d commit 6760efc
Showing 1 changed file with 25 additions and 6 deletions.
31 changes: 25 additions & 6 deletions Syntaxes/CMake Listfile.tmLanguage
Expand Up @@ -132,18 +132,37 @@
</dict> </dict>
<key>comments</key> <key>comments</key>
<dict> <dict>
<key>captures</key> <key>begin</key>
<string>(^[ \t]+)?(?=#)</string>
<key>beginCaptures</key>
<dict> <dict>
<key>1</key> <key>1</key>
<dict> <dict>
<key>name</key> <key>name</key>
<string>punctuation.definition.comment.cmake</string> <string>punctuation.whitespace.comment.leading.cmake</string>
</dict> </dict>
</dict> </dict>
<key>match</key> <key>end</key>
<string>(#).*$\n?</string> <string>(?!\G)</string>
<key>name</key> <key>patterns</key>
<string>comment.line.number-sign.cmake</string> <array>
<dict>
<key>begin</key>
<string>#</string>
<key>beginCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.comment.cmake</string>
</dict>
</dict>
<key>end</key>
<string>\n</string>
<key>name</key>
<string>comment.line.number-sign.cmake</string>
</dict>
</array>
</dict> </dict>
<key>constants</key> <key>constants</key>
<dict> <dict>
Expand Down

0 comments on commit 6760efc

Please sign in to comment.