Skip to main content

string_to_token

Function string_to_token 

Source
pub fn string_to_token(text: &str) -> SyntaxKind
Expand description

Get the token kind for a given text, including identifiers and keywords. Returns Identifier if the text is not a keyword.