XmlIncrementalLexer.scanTagAttributes

XmlLexerResult scanTagAttributes() @safe

Scans attributes inside a start tag, resuming across chunk boundaries.

Uses _partial.tag.phase to track progress:

  • phase 0: scanning attribute name
  • phase 1: expecting `=`
  • phase 2: expecting opening quote
  • phase 3: scanning quoted attribute value

Returns

A XmlLexerResult — START_TAG token when complete, needMore otherwise.

Throws

XmlException on malformed attribute syntax.