tree-sitter-css
tree-sitter-css copied to clipboard
CSS grammar for Tree-sitter
Let's define an **incomplete selector** as a CSS selector that the user is in the process of typing which doesn't yet have any trailing braces. This is the current behavior...
### Did you check existing issues? - [X] I have read all the [tree-sitter docs](https://tree-sitter.github.io/tree-sitter/using-parsers) if it relates to using the parser - [X] I have searched the existing issues...
(fixes #45) This isn't the elegant solution I was hoping for, but it's the smallest change that I could make work. Since `:has`, `:not`, `:is`, and `:where` are the only...
Adds some testing for the syntax highlighting. * Adds `. : :: ;` to `@punctuation.delimiter` * Adds `{ ( ) }` to new group `@punctuation.bracket`
```css span:nth-child(even), tr:nth-child(2n+1), div:nth-child(4) {} ``` Arguments for pseudo-classes should have appropriate scopes. [Mozilla documentation](https://developer.mozilla.org/en-US/docs/Web/CSS/:nth-child).
### Did you check existing issues? - [ ] I have read all the [tree-sitter docs](https://tree-sitter.github.io/tree-sitter/using-parsers) if it relates to using the parser - [X] I have searched the existing...
### Did you check the tree-sitter docs? - [X] I have read all the [tree-sitter docs](https://tree-sitter.github.io/tree-sitter/using-parsers) if it relates to using the parser ### Is your feature request related to...