Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Improve comment.line match.

  • Loading branch information...
commit 90662167c35bc4dcd1623400c5e9f99136b95992 1 parent 27260a1
Michael Sheets infininight authored

Showing 1 changed file with 26 additions and 7 deletions. Show diff stats Hide diff stats

  1. +26 7 Syntaxes/Eiffel.plist
33 Syntaxes/Eiffel.plist
... ... @@ -1,5 +1,5 @@
1 1 <?xml version="1.0" encoding="UTF-8"?>
2   -<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  2 +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3 3 <plist version="1.0">
4 4 <dict>
5 5 <key>fileTypes</key>
@@ -13,18 +13,37 @@
13 13 <key>patterns</key>
14 14 <array>
15 15 <dict>
16   - <key>captures</key>
  16 + <key>begin</key>
  17 + <string>(^[ \t]+)?(?=--)</string>
  18 + <key>beginCaptures</key>
17 19 <dict>
18 20 <key>1</key>
19 21 <dict>
20 22 <key>name</key>
21   - <string>punctuation.definition.comment.eiffel</string>
  23 + <string>punctuation.whitespace.comment.leading.eiffel</string>
22 24 </dict>
23 25 </dict>
24   - <key>match</key>
25   - <string>(--).*$\n?</string>
26   - <key>name</key>
27   - <string>comment.line.double-dash.eiffel</string>
  26 + <key>end</key>
  27 + <string>(?!\G)</string>
  28 + <key>patterns</key>
  29 + <array>
  30 + <dict>
  31 + <key>begin</key>
  32 + <string>--</string>
  33 + <key>beginCaptures</key>
  34 + <dict>
  35 + <key>0</key>
  36 + <dict>
  37 + <key>name</key>
  38 + <string>punctuation.definition.comment.eiffel</string>
  39 + </dict>
  40 + </dict>
  41 + <key>end</key>
  42 + <string>\n</string>
  43 + <key>name</key>
  44 + <string>comment.line.double-dash.eiffel</string>
  45 + </dict>
  46 + </array>
28 47 </dict>
29 48 <dict>
30 49 <key>match</key>

0 comments on commit 9066216

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