GrammarToken constructor
GrammarToken(})
One rule of a Grammar: a pattern whose matches are tagged with type
(and optionally re-tagged via alias), with optional nested highlighting
via inside.
Implementation
GrammarToken(
this.type,
this.pattern, {
this.lookbehind = false,
this.greedy = false,
this.alias,
Grammar Function()? inside,
}) : _inside = inside;