tree-sitter / tree-sitter-rust

Rust grammar for tree-sitter
MIT License
338 stars 96 forks source link

refactor!: use last-wins precedence for queries #211

Closed amaanq closed 6 months ago

amaanq commented 6 months ago

Refs: https://github.com/tree-sitter/tree-sitter/pull/2412 https://github.com/tree-sitter/tree-sitter/pull/2947

Max and I have agreed this is the way to go, and should be the default now after making it an opt-in flag for 7 months.

These queries aren't perfect (never were anyways), but they allow the tests upstream to pass and mostly work.