kak-tree-sitter
kak-tree-sitter copied to clipboard
Helix is to change queries precedence order
See https://github.com/helix-editor/helix/issues/9436
This doesn't affect existing KTS users because queries' versions are pinned, but any updates will require to adapt the ordering as well, and reverse the existing in-house queries.
Also see https://github.com/tree-sitter/tree-sitter/issues/2396
If you're using the tree-sitter-highlight crate then you can pass in a new parameter to switch the precedence once the new changes are released (https://github.com/tree-sitter/tree-sitter/pull/2412). I assume that it will become the default before the next release.
Thanks for reaching about it!
If you're using the tree-sitter-highlight crate
Unfortunately, yes, I’m still using it, because reimplementing it with tree-sitter
only is a ton of work. Honestly, I think the work done in Helix could be upstreamed to a crate or something else so that it can be used by others? The problem with tree-sitter-highlight
is that it doesn’t share the Tree
, so semantic objects require another pass of parsing (and I don’t like that). So far, semantic text-objects are not supported by KTS because of that. :(