Skip to main content

is_reserved_contextual

Function is_reserved_contextual 

Source
pub fn is_reserved_contextual(word: &str) -> bool
Expand description

True when word is a reserved contextual keyword — a reserved token expect_ident re-admits as an identifier. Because each of these words lexes only to its own dedicated token, matching on the source text is equivalent to matching the token kind, but keeps the exemption single-sourced against RESERVED_CONTEXTUAL.