XmlIncrementalLexer.tryResumeDelimited

XmlLexerResult tryResumeDelimited(XmlTokenKind kind) @safe

Resumes scanning a delimited token (COMMENT or CDATA) across chunk boundaries.

Matches _partial.delimited.terminator character-by-character, correctly handling partial terminator matches that span chunk boundaries. Content before the terminator is accumulated in _partial.content.

Parameters

kindThe token kind to produce (COMMENT or CDATA).

Returns

A XmlLexerResult — token when ready, needMore otherwise.

Throws

XmlException with UNEXPECTED_EOF if the stream ends before the

terminator is found.