Hi all,
trying to use the -recurse flag to highlight matching parentheses and leave a regex non-capture group unmolested for additional highlighting but having no luck. Is this possible at all?
Assuming shared/racket is a regions highlighter, all the regions it contains are mutually exclusive. If your keyword-highlighting exists in a different region, it won’t exist within this one.
Perhaps you could make the keyword highlighting a separate shared highlighter, and make this region highlighter a group highlighter containing (a) a ref to the keyword highlighting, and (b) this regex highlighter that colours brackets.
And repaint document comments for each new region.
add-highlighter -override shared/quasi/comment region ';' '$' fill comment
add-highlighter -override shared/quasi/comment-block region "#\|" "\|#" fill comment