tree-sitter / tree-sitter-julia

Julia grammar for Tree-sitter
MIT License
93 stars 31 forks source link

Upstream queries #133

Open savq opened 5 months ago

savq commented 5 months ago

Treesitter v0.21.0 made last-wins precedence the default, meaning tree-sitter queries now work in the same order as nvim ~/helix~ queries.

nvim-treesitter also renamed some captures to align with tree-sitter and helix.

This means maintaining a common set of queries is much easier now, it would reduce some duplicated efforts between editors, and also make it easier to handle breaking changes downstream.

clason commented 4 months ago

Nit: Helix is still using the old first-wins precedence; efforts to change are underway but going (very) slowly.

EDIT I think the support is already there, it's just that the queries haven't been adjusted yet.

savq commented 3 months ago

Someone had already opened a PR in helix to update the julia queries, including the precedence. See https://github.com/helix-editor/helix/pull/10031. I assume that'll get merged when helix switches. So it'll be easy for them to follow upstream too.

oh-yeah-its-all-coming-together