Skip to main content

lex_with

Function lex_with 

Source
pub fn lex_with(input: &str, ctx: &ParseCtx, config: LexConfig) -> Vec<Token>
Expand description

Lex input like lex, additionally treating the user-defined verbatim commands in ctx as verbatim (their final argument captured as one VERB token). Used by the second parse pass once definition scanning has discovered catcode-othering commands. config fixes the initial catcode regime (a Package flavor starts with @ already a letter) and whether to run the .dtx docstrip mode.