area / language-latex

Syntax highlighting for LaTeX for Atom.
Other
79 stars 47 forks source link

Biblatex regexp support #196

Closed Aerijo closed 6 years ago

Aerijo commented 6 years ago

Description of the Change

Adds support for the \regexp command offered by Biblatex. The context is ignored, rather it will apply to all \regexp{...} commands anywhere. As the name is quite unique and all regular expressions offered by any other package should be compatible with this one, this should be a safe rule.

Alternate Designs

Could have added rules like \DeclareSourcemap to limit the context of the regexp rule, but that would significantly overcomplicate things.

Benefits

No leaky regex characters

Possible Drawbacks

A user has a regexp command that doesn't contain a regexp, and gets very confused.

Applicable Issues

Fix #186