classify_ident

Function classify_ident 

Source
fn classify_ident(s: &str) -> Option<TokenKind>
Expand description

Recognise a reserved word. Returns None if the lexeme is a plain identifier. Type names (float, float2, mat3x3, …) are intentionally not classified as keywords — the parser treats them as identifiers in declaration contexts so vector/matrix variants can be added without touching the lexer.