File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 3
3
grammar CSSGrammar {
4
4
# builtin: ident (we use cssident), alpha
5
5
6
- token TOP { ^ <import >? <css >* $ | <.panic : "CSS parsing failed" > };
6
+ token TOP { ^ <import >* <css >* $ | <.panic : "CSS parsing failed" > };
7
7
token css { <ruleset > | <media > | <page > };
8
8
# rule ruleset { <selector> ** ',' '{' <declaration> ** ';' '}' };
9
9
rule ruleset { <selector > [ ',' <selector > ]* <declarations > }
@@ -50,7 +50,7 @@ grammar CSSGrammar {
50
50
token FUNCTION { <cssident > '(' };
51
51
token important_sym {:i '!' important };
52
52
53
- rule import { \@( :i 'import' ) [<string >| <uri >] <media_list >? ';' }
53
+ rule import {:i '@ import' [<string >| <uri >] <media_list >? ';' }
54
54
55
55
rule media {:i '@media' <media_list > <media_rules > }
56
56
rule media_list {<media_type > [',' <media_type >]* }
You can’t perform that action at this time.
0 commit comments