tree-sitter-css
tree-sitter-css copied to clipboard
bug: Failure to parse this example file
Did you check existing issues?
- [x] I have read all the tree-sitter docs if it relates to using the parser
- [x] I have searched the existing issues of tree-sitter-css
Tree-Sitter CLI Version, if relevant (output of tree-sitter --version)
rust crate v0.23.2
Describe the bug
The following CSS fragment is not correctly parsed, which means some features of Zed (like % in vim mode to jump between matching brackets) also do not work.
Simplified example from https://github.com/zed-industries/zed/issues/25435#issuecomment-2699617671, likely related to https://github.com/tree-sitter/tree-sitter-css/issues/17 and #65
Steps To Reproduce/Bad Parse Tree
Expected Behavior/Parse Tree
I would expect no ERROR nodes (except possibly for the @apply node if that is not supported)
Repro
@layer utilities {
.ag-cell-focus {
@apply rounded-2 !border-thin !border-primary-hover
}
}