Skip to content

Commit 36c240e

Browse files
committed
CSSGrammar tweak
1 parent 8fb22b1 commit 36c240e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

parsers/CSSGrammar.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
grammar CSSGrammar {
44
# builtin: ident (we use cssident), alpha
55

6-
token TOP { ^ <import>? <css>* $ | <.panic: "CSS parsing failed"> };
6+
token TOP { ^ <import>* <css>* $ | <.panic: "CSS parsing failed"> };
77
token css { <ruleset> | <media> | <page> };
88
# rule ruleset { <selector> ** ',' '{' <declaration> ** ';' '}' };
99
rule ruleset { <selector> [ ',' <selector> ]* <declarations> }
@@ -50,7 +50,7 @@ grammar CSSGrammar {
5050
token FUNCTION { <cssident> '(' };
5151
token important_sym {:i '!'important };
5252

53-
rule import { \@(:i'import') [<string>|<uri>] <media_list>? ';' }
53+
rule import {:i'@import' [<string>|<uri>] <media_list>? ';' }
5454

5555
rule media {:i'@media' <media_list> <media_rules> }
5656
rule media_list {<media_type> [',' <media_type>]*}

0 commit comments

Comments
 (0)