atomi wrote:If you don't want to match the starting ; and ending :Code you can use non-capturing groups ie: (?:;)
I appreciate the tip, there are lots of ways I could deal with the bounds on it. I'm struggling more with the super specific first ';'. I've gotten an implementation of matching outer-most brackets working with the Boost regex in ST2's search, but I can't seem to get it to translate to the Oniguruma regex for the syntax file. And even then, I'm not 100% sure I'll be able to match the first ';' not in braces. I think I know how it will work but I haven't been able to test it. Any implementation to find that ';' and use it as the leftmost bound of my match would be seriously welcome.
Also, just curious about the "across one pattern" part. I know that once I've matched comments or strings, any "special" syntax within them doesn't get highlighted. Is that because they've been matched already or because they've been matched and assigned a scope-name?