Permalink
Browse files

Fix `@import 'foo.css';`

  • Loading branch information...
1 parent 6495196 commit 332418fa0f116c87fabc867f5e6ab5a8fea64517 @joshvarner joshvarner committed Nov 30, 2010
Showing with 7 additions and 1 deletion.
  1. +5 −1 Syntaxes/CSS.plist
  2. +2 −0 Tests/tests.css
View
@@ -61,7 +61,7 @@
</dict>
<dict>
<key>begin</key>
- <string>^\s*((@)import\b)</string>
+ <string>\s*((@)import\b)\s*</string>
<key>captures</key>
<dict>
<key>1</key>
@@ -86,6 +86,10 @@
<string>#string-double</string>
</dict>
<dict>
+ <key>include</key>
+ <string>#string-single</string>
+ </dict>
+ <dict>
<key>begin</key>
<string>\s*(url)\s*(\()\s*</string>
<key>beginCaptures</key>
View
@@ -38,6 +38,8 @@ div
garbagehere
@import url('foo.css');
+@import 'foo.css';
+@import "foo.css";
garbage
/* Test */

0 comments on commit 332418f

Please sign in to comment.