We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tree-sitter --version
0.22.6
The following CSS from the official docs leads to a parsing error.
@scope (.article-body) { img { border: 5px solid black; }
Parse tree with error
(stylesheet ; [0, 0] - [4, 0] (at_rule ; [0, 0] - [3, 1] (at_keyword) ; [0, 0] - [0, 6] (parenthesized_query ; [0, 7] - [0, 22] "(" ; [0, 7] - [0, 8] (ERROR ; [0, 8] - [0, 9] ".") ; [0, 8] - [0, 9] (keyword_query) ; [0, 9] - [0, 21] ")") ; [0, 21] - [0, 22] (block ; [0, 23] - [3, 1] "{" ; [0, 23] - [0, 24] (rule_set ; [1, 4] - [3, 1] (selectors ; [1, 4] - [1, 7] (tag_name)) ; [1, 4] - [1, 7] (block ; [1, 8] - [3, 1] "{" ; [1, 8] - [1, 9] (declaration ; [2, 8] - [2, 32] (property_name) ; [2, 8] - [2, 14] ":" ; [2, 14] - [2, 15] (integer_value ; [2, 16] - [2, 19] (unit)) ; [2, 17] - [2, 19] (plain_value) ; [2, 20] - [2, 25] (plain_value) ; [2, 26] - [2, 31] ";") ; [2, 31] - [2, 32] "}")) ; [3, 0] - [3, 1] "}"))) ; [3, 1] - [3, 1]
Parse the following code
(stylesheet ; [0, 0] - [4, 0] (at_rule ; [0, 0] - [3, 1] (at_keyword) ; [0, 0] - [0, 6] (parenthesized_query ; [0, 7] - [0, 22] (class_selector (class_name)) ) ; [0, 21] - [0, 22] (block ; [0, 23] - [3, 1] "{" ; [0, 23] - [0, 24] (rule_set ; [1, 4] - [3, 1] (selectors ; [1, 4] - [1, 7] (tag_name)) ; [1, 4] - [1, 7] (block ; [1, 8] - [3, 1] "{" ; [1, 8] - [1, 9] (declaration ; [2, 8] - [2, 32] (property_name) ; [2, 8] - [2, 14] ":" ; [2, 14] - [2, 15] (integer_value ; [2, 16] - [2, 19] (unit)) ; [2, 17] - [2, 19] (plain_value) ; [2, 20] - [2, 25] (plain_value) ; [2, 26] - [2, 31] ";") ; [2, 31] - [2, 32] "}")) ; [3, 0] - [3, 1] "}"))) ; [3, 1] - [3, 1]
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Did you check existing issues?
Tree-Sitter CLI Version, if relevant (output of
tree-sitter --version
)0.22.6
Describe the bug
The following CSS from the official docs leads to a parsing error.
Parse tree with error
Steps To Reproduce/Bad Parse Tree
Parse the following code
Expected Behavior/Parse Tree
Repro
The text was updated successfully, but these errors were encountered: