Permalink
Browse files

More properly scope `meta.property-list.css`, fixes #4 & #2.

  • Loading branch information...
1 parent bb0d019 commit 4a5fbcdc3472bed66fbd3ffaf7955af099f9e5a8 @infininight infininight committed Dec 2, 2012
Showing with 11 additions and 19 deletions.
  1. +11 −19 Syntaxes/CSS.plist
View
@@ -150,15 +150,7 @@
</dict>
</dict>
<key>end</key>
- <string>\s*(\})</string>
- <key>endCaptures</key>
- <dict>
- <key>1</key>
- <dict>
- <key>name</key>
- <string>punctuation.section.property-list.end.css</string>
- </dict>
- </dict>
+ <string>(?!\G)</string>
<key>name</key>
<string>meta.at-rule.font-face.css</string>
<key>patterns</key>
@@ -244,15 +236,7 @@
<key>begin</key>
<string>(?=\{)</string>
<key>end</key>
- <string>(\})</string>
- <key>endCaptures</key>
- <dict>
- <key>1</key>
- <dict>
- <key>name</key>
- <string>punctuation.section.property-list.end.css</string>
- </dict>
- </dict>
+ <string>(?!\G)</string>
<key>patterns</key>
<array>
<dict>
@@ -645,7 +629,15 @@
</dict>
</dict>
<key>end</key>
- <string>(?=\s*\})</string>
+ <string>\}</string>
+ <key>endCaptures</key>
+ <dict>
+ <key>0</key>
+ <dict>
+ <key>name</key>
+ <string>punctuation.section.property-list.end.css</string>
+ </dict>
+ </dict>
<key>name</key>
<string>meta.property-list.css</string>
<key>patterns</key>

0 comments on commit 4a5fbcd

Please sign in to comment.