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

Add Custom Predicates to tree-sitter-highlight?

Open tjdevries opened this issue 3 years ago • 0 comments

Hi, I might have missed this, but is it possible for a consumer of the tree-sitter-highlight crate to implement custom predicates in Rust to handle matches?

I couldn't figure out if there was any way to hook into the other predicates without modifying the source of tree-sitter-highlight.

I saw there is satisfies_text_predicates but that seems like it only handles the ones that ship by default with the crate.

Thanks!

tjdevries avatar Jan 04 '22 21:01 tjdevries