LineCursor
An immutable view over the lines of a source, positioned at one of them. Recognizers receive a cursor and never mutate it, so no state is shared between them.
Parameters
every line of the source
index of the line the cursor points at
Properties
Functions
Resolves an extent that grows up to and including the first line closes accepts, which is the shape of every fenced block.
Covers every line left, which is where a block that never closes ends.
Resolves an extent of a known amount of lines.
Builds a match from a resolved BlockExtent.
Builds a match whose token covers the source from the cursor's line up to endIndex. Prefer the BlockExtent overload, which resolves the line count and the end together. This one serves the kinds whose text is not line-aligned: the comment, the page break and the zero-width function call flag.