tlaplus-community / tree-sitter-tlaplus

A tree-sitter grammar for TLA⁺ and PlusCal
MIT License
57 stars 10 forks source link

fix!: adapt to breaking upstream changes #119

Closed clason closed 4 months ago

clason commented 4 months ago

Problem: The "trick" of wrapping an anonymous node into a single choice or seq 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 and skip and use named nodes in queries instead (anonymous nodes are no longer exposed).

@amaanq

ahelwer commented 4 months ago

Thanks! Do I need to propagate these query changes to nvim-treesitter?

clason commented 4 months ago

No, thank you, I can handle this myself (since I know what changes are needed)!

clason commented 4 months ago

Ah, I guess I missed some hidden queries ;)

clason commented 4 months ago

Ran our query formatter on the nvim queries, as a treat ;) Feel free to drop or squash that commit.