Skip to main content

sticky_braceless_code_mode

Function sticky_braceless_code_mode 

Source
pub fn sticky_braceless_code_mode(name: &str) -> Option<bool>
Expand description

For a brace-less sticky Rd macro name (\code/\verb/…, see [STICKY_BRACELESS_RD_MACROS]), which parse_Rd lexer state its “expecting {” recovery leaves in place: Some(true) for the R-code macros (the recovery stays in R-code mode → per-line RCODE atoms) and Some(false) for the verbatim macros (verbatim mode → per-line VERB atoms). None for a non-sticky name and for item, whose out-of-list misuse is instead an (UNKNOWN "\item") node (handled by the projector’s split_braceless_items). The two sets are exactly [STICKY_BRACELESS_RD_MACROS] minus item, probed against R 4.5 (see that list’s doc).