Hello everyone!
I am one of contributors for KSP (Kontakt Script Processor) package for ST. I am trying for quite some time to fix one bug in syntax coloring. To explain in a bit more detail: in this extension we support multiple block comment types: { }
/* */
(* *)
. These can be nested, and the compiler understands this just fine. However, I cannot figure out how to make the syntax coloring work with this nesting properly. Here’s what we have right now:
The sublime-syntax file is defined like this for block comments:
- match: '\{|\(\*|/\*'
comment: Block comment
push:
- meta_scope: comment.block.source.ksp
- match: '\}|\*\)|\*/'
pop: true
I’m really stuck here, I’ve tried going through the docs a few times but it’s just not happening. Any tips and help are much appreciated. Thanks!