Is it possible to group tokens for relexing? I have a syntax like:
JS $item $index $obj
document.actTest2 = 'Hahaha' + item + index + (obj && obj.piu);
`JS` is a command (first token), `$item`, `$index` and `$obj` are arguments declaration (next three tokens) and everything with higher than `JS` indentation is one last token.
There is a problem with incremental highlighting lexer (everything works ok, until I begin to edit my code).
I want relexing to start from first token in group when I've changed last token in group.