It would be nice if there was something like SyntaxSetBuilder::add_defaults_newlines / SyntaxSetBuilder::add_defaults_nonewlines, since right now to make a SyntaxSet with defaults plus extra ones, you have to clone every SyntaxDefinition from one of the default syntax sets to pass them to SyntaxSetBuilder::add AFAICT.
It would be nice if there was something like
SyntaxSetBuilder::add_defaults_newlines
/SyntaxSetBuilder::add_defaults_nonewlines
, since right now to make aSyntaxSet
with defaults plus extra ones, you have to clone everySyntaxDefinition
from one of the default syntax sets to pass them toSyntaxSetBuilder::add
AFAICT.