Optional$deleteOptional$innerOptional$insertOptional$insertOptional$insertOptional$mergeOptional$placeholderWhether the tokens of this grammar leave an identifier-like placeholder in the code that is
tokenized with $inner (default), so that the inner grammar still sees a value where they
were. Set to false for tokens that don’t stand for anything (e.g. the prefixes of a diff).
Optional$restAn optional grammar object that will be appended to this grammar.
Optional$tokenize
The language of everything that is not matched by this grammar.
The code is tokenized with this grammar, the resulting tokens are removed, what is left is tokenized as one whole with the
$innergrammar and the tokens are put back afterwards. This is how templating languages embed their host language and howdiff:csshighlights the code inside a diff.