kak-tree-sitter icon indicating copy to clipboard operation
kak-tree-sitter copied to clipboard

Helix is to change queries precedence order

Open postsolar opened this issue 1 year ago • 2 comments

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.

postsolar avatar Jan 29 '24 05:01 postsolar

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.

the-mikedavis avatar Jan 29 '24 14:01 the-mikedavis

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. :(

hadronized avatar Feb 09 '24 22:02 hadronized