klyn.code.klyn.KlynTokenizer.nextLineState
method
public override nextLineState(line as String, initialState as LexicalState = null) as LexicalState
Description

Advances the lexical state across line without allocating TokenSpan objects, preserving Klyn query: block indentation tracking.

Parameters
ParameterDescription
lineSingle line of Klyn source text.
initialStateLexical state at the start of line.
Returns

Resulting LexicalState at the end of line.

Example
import klyn.code
import klyn.code.klyn

t = KlynTokenizer()
s = t.nextLineState("    query:", LexicalState.NORMAL)
assert s.inQueryBlock()