cli: Enable HTML syntax highlighting in diffs

This commit is contained in:
cloudhead 2024-04-20 15:59:20 +02:00
parent 95b5191533
commit ae709b00ed
No known key found for this signature in database
1 changed files with 2 additions and 3 deletions

View File

@ -318,12 +318,11 @@ impl Highlighter {
)
.expect("Highlighter::config: highlight configuration must be valid")
})),
#[cfg(feature = "tree-sitter-html")]
"html" => Some(self.configs.entry(language).or_insert_with(|| {
ts::HighlightConfiguration::new(
tree_sitter_html::language(),
tree_sitter_html::HIGHLIGHT_QUERY,
tree_sitter_html::INJECTION_QUERY,
tree_sitter_html::HIGHLIGHTS_QUERY,
tree_sitter_html::INJECTIONS_QUERY,
"",
)
.expect("Highlighter::config: highlight configuration must be valid")