Skip to main content

keyword_kind

Function keyword_kind 

Source
pub fn keyword_kind(ident: &str) -> Option<SyntaxKind>
Expand description

Map an identifier’s text to its keyword kind, case-insensitively, using Snowflake semantics.

Snowflake folds unquoted identifiers and matches keywords without regard to case. Returns None for plain identifiers — the lexer emits SyntaxKind::IDENT for every word and the parser uses this to reclassify keywords contextually. Kept for backward compatibility; prefer keyword_kind_for when a Dialect is in hand.