(treesitter) set highlight for nodes of multiple groups #27538
Replies: 2 comments 1 reply
-
First, this is an obsolete command from an archived plugin; you should use the builtin Second, no. You need to address this on the level of queries, where you need to add a pattern capturing -- with higher precedence! -- the constant inside the math environment. ( |
Beta Was this translation helpful? Give feedback.
-
Thanks, think that helps me understand what's going on a bit better. By any chance are you aware of any examples that use queries in syntax highlighting? I believe I'd have to write a lua script that uses functions found in |
Beta Was this translation helpful? Give feedback.
-
For some syntax, when doing
:TSHighlightCapturesUnderCursor
I see multiple groups listed, for exampleIs there a way to set highlighting only for syntax which is a member of both of these groups? In this example,
@constant
seems to override whatever was set for@markup.math
, but what I'm trying to do is set highlighting for@constant
within@markup.math
differently.Beta Was this translation helpful? Give feedback.
All reactions