Skip to main content

scan

Function scan 

Source
pub fn scan(code: &str, language: &str) -> Vec<Token>
Expand description

Tokenize code in the given language, returning structured tokens with byte ranges.

Unknown languages return an empty token list. Use highlight for HTML output instead.