Utility function to render a given parser position for error reporting and debug purposes.
This is a version specific for char parsers.
Note: it will fall back to core version (one token per line) in case any multicharacter tokens are present.
Data object (tokens and options).
Parser position in the tokens array.
How many tokens (characters) around the current one to render.
A multiline string.
Utility function to render a given parser position for error reporting and debug purposes.
This is a version specific for char parsers.
Note: it will fall back to core version (one token per line) in case any multicharacter tokens are present.