Skip to content

bug: Failure to parse this example file #70

New issue

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

Open
2 tasks done
ConradIrwin opened this issue Mar 5, 2025 · 0 comments
Open
2 tasks done

bug: Failure to parse this example file #70

ConradIrwin opened this issue Mar 5, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@ConradIrwin
Copy link

Did you check existing issues?

  • I have read all the tree-sitter docs if it relates to using the parser
  • 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 zed-industries/zed#25435 (comment), likely related to #17 and #65

Steps To Reproduce/Bad Parse Tree

Image

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 
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant