Skip to main content

is_definition_command

Function is_definition_command 

Source
pub fn is_definition_command(name: &str) -> bool
Expand description

Whether name is a definition command the scanner recognizes (\newcommand/\def/xparse families; see [DefKind]). Exposed so consumers that must treat a definition’s arguments as code carried, not executed (the linter’s missing-required-argument rule skips partial applications like \newcommand{\bold}{\textbf}) share the scanner’s one name list instead of duplicating it.