I'm trying to understand how the highlighting lexer for custom language works. Seems the highlighting lexer doesn't process all document on document change. Please explain what part of the document is reparsed.
For example, my grammar contains "#foreach" token. Seems, the highlighting lexer sometimes parses "each" substring so highlighting is broken. How to fix this problem? Will the merging lexer help me?