Skip to main content

get_javascript_token

Function get_javascript_token 

Source
pub fn get_javascript_token(source_line: &str) -> Option<&str>
Expand description

Extract the first valid JavaScript identifier from a source line.

Skips leading whitespace, then collects characters that form a valid identifier. Returns None if no identifier is found.