Permalink
Browse files

Fix issue where bad selectors break highlighting until the next `{` m…

…atch
  • Loading branch information...
1 parent 9699286 commit 4f4183a6d6301f8ee6357bb734bdf1ee5803a6c7 @joshvarner joshvarner committed Nov 5, 2010
Showing with 4 additions and 8 deletions.
  1. +4 −8 Syntaxes/CSS.plist
View
@@ -21,11 +21,11 @@
<array>
<dict>
<key>include</key>
- <string>#selector</string>
+ <string>#comment-block</string>
</dict>
<dict>
<key>include</key>
- <string>#comment-block</string>
+ <string>#selector</string>
</dict>
<dict>
<key>begin</key>
@@ -506,18 +506,14 @@
<key>selector</key>
<dict>
<key>begin</key>
- <string>(?=\s*[:.*#a-zA-Z])</string>
+ <string>\s*(?=[:.*#a-zA-Z])</string>
<key>end</key>
- <string>(?=[{)])</string>
+ <string>(?=[/@{)])</string>
<key>name</key>
<string>meta.selector.css</string>
<key>patterns</key>
<array>
<dict>
- <key>include</key>
- <string>#comment-block</string>
- </dict>
- <dict>
<key>match</key>
<string>\b(a|abbr|acronym|address|area|article|aside|audio|b|base|big|blockquote|body|br|button|canvas|caption|cite|code|col|colgroup|datalist|dd|del|details|dfn|dialog|div|dl|dt|em|eventsource|fieldset|figure|figcaption|footer|form|frame|frameset|(h[1-6])|head|header|hgroup|hr|html|i|iframe|img|input|ins|kbd|label|legend|li|link|map|mark|menu|meta|meter|nav|noframes|noscript|object|ol|optgroup|option|output|p|param|pre|progress|q|samp|script|section|select|small|span|strike|strong|style|sub|summary|sup|table|tbody|td|textarea|tfoot|th|thead|time|title|tr|tt|ul|var|video)\b</string>
<key>name</key>

0 comments on commit 4f4183a

Please sign in to comment.