pub trait SyntaxHighlighter {
// Required methods
fn tokenize_line(&self, line: &str) -> Vec<SyntaxToken>;
fn language(&self) -> Language;
}Expand description
Language-specific line tokenizer.
Required Methods§
Sourcefn tokenize_line(&self, line: &str) -> Vec<SyntaxToken>
fn tokenize_line(&self, line: &str) -> Vec<SyntaxToken>
Break a single line into a sequence of colored tokens.