(source: String, stylesheet: &StyleSheet)
| 13 | |
| 14 | impl CssHighlighter { |
| 15 | pub fn new(source: String, stylesheet: &StyleSheet) -> Self { |
| 16 | let mut token_colors = TokenHighlighter::new(); |
| 17 | let _ = stylesheet.accept(&mut token_colors); |
| 18 | Self { source, token_colors } |
| 19 | } |
| 20 | } |
| 21 | |
| 22 | impl Highlighter for CssHighlighter { |