singleSpecialChar method

Parser<TextNode> singleSpecialChar()
inherited

Fallback for standalone special characters (e.g. isolated * or [).

Implementation

Parser<TextNode> singleSpecialChar() => seq3(
  position(),
  any(),
  position(),
).map3((start, c, stop) => TextNode(c, start: start, stop: stop));