Skip to content
This repository has been archived by the owner on Jan 17, 2024. It is now read-only.

Highlight arbitrary capture groups like those defined by "make-range!" #49

Open
IndianBoy42 opened this issue Jul 16, 2021 · 1 comment

Comments

@IndianBoy42
Copy link

I am trying to create new queries for treesitter-textobjects, which uses "make-range!" a lot of creating the .outer variant of text objects

Unfortunately afaict there is no way of highlighting those groups to see what they are capturing, only capture groups defined by @ can be highlighting.

Please correct me if I'm wrong, otherwise I think this would be a very useful feature to add

@theHamsta
Copy link
Member

This should be fairly straight forward to visualize. make-range! has partly be replaced by the ranges that are used in Neovim core for injections. In general the preprocessing function that nvim-treesitter-textobject uses is fairly slow and we should gradually upgrade to use the Neovim-core query function only. It might still be useful to visualize the old meta data.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants