Merge the CSS "expression" and "path" parser rules
This commit is contained in:
parent
50ee66419e
commit
e2b36ad9a4
|
@ -7,16 +7,10 @@ options no_result_var
|
||||||
|
|
||||||
rule
|
rule
|
||||||
css
|
css
|
||||||
: expression { val[0] }
|
: path { val[0] }
|
||||||
| /* none */ { nil }
|
| /* none */ { nil }
|
||||||
;
|
;
|
||||||
|
|
||||||
expression
|
|
||||||
: path
|
|
||||||
| node_test
|
|
||||||
| axis
|
|
||||||
;
|
|
||||||
|
|
||||||
path_member
|
path_member
|
||||||
: node_test
|
: node_test
|
||||||
| axis
|
| axis
|
||||||
|
@ -29,6 +23,7 @@ rule
|
||||||
|
|
||||||
path
|
path
|
||||||
: path_members { s(:path, *val[0]) }
|
: path_members { s(:path, *val[0]) }
|
||||||
|
| path_member
|
||||||
;
|
;
|
||||||
|
|
||||||
node_test
|
node_test
|
||||||
|
|
Loading…
Reference in New Issue