looks like your syntax definition doesn't handle
then statements where an expression follows the
then on the same line, and thus doesn't require an
you can see this on line 36, the scope is
source.livecode meta.function.positional.livecode meta.block.if.livecode meta.block.if.livecode when should just be
source.livecode meta.function.positional.livecode meta.block.if.livecode
eventually, after enough of these, you end up with a large stack of scopes, that is too large for ST to use to highlight the file.
you can see how the ASP package handles this here: