pub fn highlight(src: &str) -> Vec<Span>Expand description
Tokenize Rust src into a contiguous, ordered list of coloured Spans
covering every byte (the concatenation of span ranges == the input). ASCII-byte
driven; multi-byte UTF-8 inside a token is preserved (only token boundaries are
decided on ASCII).