public override nextLineState(line as String, initialState as LexicalState = null) as LexicalState
Advances the lexical state across line without allocating TokenSpan objects, preserving Klyn query: block indentation tracking.
| Parameter | Description |
|---|---|
line | Single line of Klyn source text. |
initialState | Lexical state at the start of line. |
Resulting LexicalState at the end of line.
import klyn.code
import klyn.code.klyn
t = KlynTokenizer()
s = t.nextLineState(" query:", LexicalState.NORMAL)
assert s.inQueryBlock()