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 @@ -133,7 +133,7 @@ ident -> "-":? nmstart nmchar:*
133
133
name -> nmchar :+
134
134
nmstart -> [_a-zA-Z] | nonascii | escape
135
135
nonascii -> [^\0 -\1 77]
136
- unicode -> "\\ " ( hexchar hexchar :? hexchar :? hexchar :? hexchar :? hexchar :? ) ( "\r\n " | space ):?
136
+ unicode -> "\\ " ( hex hex :? hex :? hex :? hex :? hex :? ) ( "\r\n " | space ):?
137
137
{% (d ) => { return {parsed: String .fromCodePoint (parseInt (collapse (d[1 ]), 16 )), raw: collapse (d)} } %}
138
138
escape -> unicode
139
139
| "\\ " [^\n\r\f 0-9a-fA-F] {% (d ) => { return {parsed: d[1 ], raw: collapseRaw (d)} } %}
@@ -145,7 +145,7 @@ int -> [0-9]:+
145
145
# @see: https://www.w3.org/TR/css3-selectors/#nth-child-pseudo
146
146
nth -> ( [+-] :? int :? [nN] ( _ [+-] _ int ):? | [+-] :? int )
147
147
{% (d ) => { return {parsed: collapse (d).replace (/ [ \n\r\t\f ] + / g , ' ' ), raw: collapseRaw (d)} } %}
148
- hexchar -> [0-9a-fA-F]
148
+ hex -> [0-9a-fA-F]
149
149
string -> ( string1 | string2 ) {% (d ) => d[0 ][0 ] %}
150
150
string1 -> "\" " ( [^\n\r\f\\ "] | escaped_nl | nonascii | escape ):* "\" "
151
151
{% (d ) => { return {parsed: collapse (d[1 ]), raw: collapseRaw (d)} } %}
You can’t perform that action at this time.
0 commit comments