Skip to main content

is_valid_identifier

Function is_valid_identifier 

Source
pub fn is_valid_identifier(name: &str) -> bool
Expand description

Returns true if name is a valid LeekScript identifier (non-empty, starts with letter or underscore, rest alphanumeric or underscore). Used e.g. for rename validation in LSP.