Trying to crate a custom syntax highlighter, and it’s working fine for the limited use cases I’m interested in, however one thing I noticed is that once a match is made and the string is classed as whatever, no further matches will be considered. Therefore this type of stuff is probably done elsewhere? All the “tutorials” I can find online seem to handle it all in grammar.
What I’m after is changing the color of strings enclosed in
*stars* even though that’s part of test that was already matched by another rule which classes it as string.quoted.single.
Any help is appreciated.