You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this means it expects a fully valid identifier after a escape sequence, which includes enforcing the extra restriction on the starting character, which should not be applied after an escape sequence.
Did you check existing issues?
Tree-Sitter CLI Version, if relevant (output of
tree-sitter --version
)tree-sitter 0.25.1
Describe the bug
Currently the grammar defines a class name as
this means it expects a fully valid identifier after a escape sequence, which includes enforcing the extra restriction on the starting character, which should not be applied after an escape sequence.
(in fact parsing of escape sequences are part of the identifiers job according to the css grammar, https://www.w3.org/TR/css-syntax-3/#consume-an-ident-sequence )
Steps To Reproduce/Bad Parse Tree
when parsing this file it reports a error:
.a\.5 {}
which happens because
5
isnt a valid start to an identifier.Expected Behavior/Parse Tree
Not sure how we would want the nodes to look, would likely need a new
identifier_continuation
or similar (I'm bad at names)Repro
The text was updated successfully, but these errors were encountered: