Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Improve comment.line match.

  • Loading branch information...
commit 41b53e421f3aa5048ff14311fe1bf8721f6cc6cf 1 parent 9ca30f3
@infininight infininight authored
Showing with 25 additions and 6 deletions.
  1. +25 −6 Syntaxes/Scheme.plist
View
31 Syntaxes/Scheme.plist
@@ -62,18 +62,37 @@
<dict>
<key>comment</key>
<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.scheme</string>
+ <string>punctuation.whitespace.comment.leading.scheme</string>
</dict>
</dict>
- <key>match</key>
- <string>(;).*$\n?</string>
- <key>name</key>
- <string>comment.line.semicolon.scheme</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.scheme</string>
+ </dict>
+ </dict>
+ <key>end</key>
+ <string>\n</string>
+ <key>name</key>
+ <string>comment.line.semicolon.scheme</string>
+ </dict>
+ </array>
</dict>
<key>constants</key>
<dict>
Please sign in to comment.
Something went wrong with that request. Please try again.