tree-sitter / tree-sitter-javascript

Javascript grammar for tree-sitter
MIT License
314 stars 108 forks source link

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

Closed amaanq closed 3 months ago

amaanq commented 3 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.

CI will break till there's a new pre-release/release, which is fine for now.

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