Our great sponsors
-
nvim-ts-rainbow
Discontinued Rainbow parentheses for neovim using tree-sitter. Use https://sr.ht/~p00f/nvim-ts-rainbow instead
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
I'm happy to say I have fixed [the bug in nvim-ts-rainbow] that caused all JSX props to be highlighted](https://github.com/p00f/nvim-ts-rainbow/issues/118) in extended_mode instead of just highlighting the tag names. It was bugging me for a while when working on React components. Now, only the tag names and angle brackets in JSX elements are highlighted.
I read the entire Tree-sitter docs on pattern matching with queries. They lay out the foundations pretty well. I also looked at nvim-treesitter queries to look for real-life examples.
Also, check out the nvim-treesitter/playground to try the queries with fast feedback.