Permalink
Browse files

Improve comment.line match.

  • Loading branch information...
1 parent 27260a1 commit 90662167c35bc4dcd1623400c5e9f99136b95992 @infininight infininight committed Nov 14, 2011
Showing with 26 additions and 7 deletions.
  1. +26 −7 Syntaxes/Eiffel.plist
View
33 Syntaxes/Eiffel.plist
@@ -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>
@@ -13,18 +13,37 @@
<key>patterns</key>
<array>
<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.eiffel</string>
+ <string>punctuation.whitespace.comment.leading.eiffel</string>
</dict>
</dict>
- <key>match</key>
- <string>(--).*$\n?</string>
- <key>name</key>
- <string>comment.line.double-dash.eiffel</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.eiffel</string>
+ </dict>
+ </dict>
+ <key>end</key>
+ <string>\n</string>
+ <key>name</key>
+ <string>comment.line.double-dash.eiffel</string>
+ </dict>
+ </array>
</dict>
<dict>
<key>match</key>

0 comments on commit 9066216

Please sign in to comment.