Hi FitchFoll, thanks for working on that.
I see you choose to not provide support for “\\” regexes like me, it’s indeed a bit tedious to write, and it will encourage syntax writer to uses the cleaner simple quote syntax ‘\’.
Comparing to my syntax,
I feel sad that you didn’t provide standard scopes for context name.
You put an “entity.name.context” on it meaning it would probably looks like crap in most color scheme.
Same thing for the “entity.name.constant”. I personally used “entity.name.class” and “entity.name.function”.
I know it’s the direction Wbond took by introducing “entity.name.struct” and others, but I think this hurts ST in the long term.
Anyway I think you could use more different scopes for regexes. Most of the thing are highlighted as “keyword.control” and “keyword.operator” which have often the same color. Plus I don’t see why ‘\d’ is a ‘keyword.control’ and not a ‘constant.language’.
But I like how ‘meta-scope’, ‘match’ and ‘push’ are scoped differently.
I think you should try your syntax with the various Default color scheme to see how it looks like.
Ideally one should not have to fine tune it’s color scheme for each language he uses.
Regarding the multi-line support I can’t say much since my syntax don’t usually rely on those.
So apart for this scope knit-picking, I think it’s a good job, and splitting the Onigurama regex into it’s own file will probably prove useful.