Skip to main content

report_missing_grammar

Function report_missing_grammar 

Source
pub fn report_missing_grammar(name: &str, err: &GrammarLoadError)
Expand description

Record a grammar load failure and emit a one-shot stderr warning.

Subsequent calls with the same name only increment the failure count — the user only sees the warning once per process per missing grammar. Use take_missing_grammars at the end of a long-running command to print a summary of affected files.