Is there currently a way to highlight parentheses from a Lezer grammar without including them in the syntax tree?
I was only able to get this to work if the parentheses showed up as nodes:
styleTags({
'( )': tags.paren,
});
Is there currently a way to highlight parentheses from a Lezer grammar without including them in the syntax tree?
I was only able to get this to work if the parentheses showed up as nodes:
styleTags({
'( )': tags.paren,
});
Highlighting uses information from the syntax tree. If something isn’t in the tree, you cannot target it with the regular highlighter (though of course you can write custom extensions that create decorations in other ways).
Thanks for the quick response! I will keep this in mind.