Closed clason closed 4 months ago
Thanks! Do I need to propagate these query changes to nvim-treesitter?
No, thank you, I can handle this myself (since I know what changes are needed)!
Ah, I guess I missed some hidden queries ;)
Ran our query formatter on the nvim queries, as a treat ;) Feel free to drop or squash that commit.
Problem: The "trick" of wrapping an anonymous node into a single
choice
orseq
no longer works as of https://github.com/tree-sitter/tree-sitter/pull/2577 since the wrapped anonymous nodes are no longer exposed to queries.Solution: Drop unnecessary
choice
andskip
and use named nodes in queries instead (anonymous nodes are no longer exposed).@amaanq