Skip to content
Browse files

Fix for block comment syntax

* Comment delimiter `//-` is now recognized.
* Block comments may have a blank line.
  • Loading branch information...
1 parent 367ef78 commit ca21b51104d1d7ec6e7ca4a290ca24a07f72aeb6 David Rosen committed Aug 10, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 Syntaxes/Jade.tmLanguage
View
6 Syntaxes/Jade.tmLanguage
@@ -40,13 +40,13 @@
</dict>
</dict>
<key>match</key>
- <string>^ *(//)\s*\S.*$\n?</string>
+ <string>^\s*(//-?)(?:\s*[^-\s]|\s+\S).*$\n?</string>
<key>name</key>
<string>comment.line.double-slash.jade</string>
</dict>
<dict>
<key>begin</key>
- <string>^(\s*)(//)\s*$</string>
+ <string>^(\s*)(//-?)\s*$</string>
<key>beginCaptures</key>
<dict>
<key>2</key>
@@ -56,7 +56,7 @@
</dict>
</dict>
<key>end</key>
- <string>^(?!\1\s+)</string>
+ <string>^(?!\1\s+|$)</string>
<key>name</key>
<string>comment.block.jade</string>
</dict>

0 comments on commit ca21b51

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