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 14, 2011
1 parent 27260a1 commit 9066216
Showing 1 changed file with 26 additions and 7 deletions.
33 changes: 26 additions & 7 deletions 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>
Expand All @@ -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>
Expand Down

0 comments on commit 9066216

Please sign in to comment.