Skip to content

Commit

Permalink
Merge pull request #1083 from jdujava/master
Browse files Browse the repository at this point in the history
Support more macros for defining commands
  • Loading branch information
pfoerster authored Apr 20, 2024
2 parents eac63a5 + 738fdc1 commit c8f8818
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions crates/parser/src/latex/lexer/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,10 @@ pub fn classify(name: &str, config: &SyntaxConfig) -> CommandName {
"label" => CommandName::LabelDefinition,
"crefrange" | "crefrange*" | "Crefrange" | "Crefrange*" => CommandName::LabelReferenceRange,
"newlabel" => CommandName::LabelNumber,
"newcommand"
| "newcommand*"
| "renewcommand"
| "renewcommand*"
| "DeclareRobustCommand"
| "DeclareRobustCommand*" => CommandName::CommandDefinition,
"newcommand" | "newcommand*" | "renewcommand" | "renewcommand*"
| "DeclareRobustCommand" | "DeclareRobustCommand*"
| "NewDocumentCommand" | "RenewDocumentCommand" | "DeclareDocumentCommand"
| "NewCommandCopy" | "RenewCommandCopy" | "DeclareCommandCopy" => CommandName::CommandDefinition,
"DeclareMathOperator" | "DeclareMathOperator*" => CommandName::MathOperator,
"newglossaryentry" => CommandName::GlossaryEntryDefinition,
"gls" | "Gls" | "GLS" | "glspl" | "Glspl" | "GLSpl" | "glsdisp" | "glslink" | "glstext"
Expand Down

0 comments on commit c8f8818

Please sign in to comment.