import { type TokenObject } from "https://deno.land/x/frugal@0.5.0/docs/dep/prism.ts";
The expansion of a simple RegExp
literal to support additional properties.
Properties
If true
, then the first capturing group of pattern
will (effectively) behave as a lookbehind
group meaning that the captured text will not be part of the matched text of the new token.
optional
inside: Grammar | undefinedThe nested tokens of this token.
This can be used for recursive language definitions.
Note that this can cause infinite recursion.