cli: Enable HTML syntax highlighting in diffs
This commit is contained in:
parent
95b5191533
commit
ae709b00ed
|
|
@ -318,12 +318,11 @@ impl Highlighter {
|
||||||
)
|
)
|
||||||
.expect("Highlighter::config: highlight configuration must be valid")
|
.expect("Highlighter::config: highlight configuration must be valid")
|
||||||
})),
|
})),
|
||||||
#[cfg(feature = "tree-sitter-html")]
|
|
||||||
"html" => Some(self.configs.entry(language).or_insert_with(|| {
|
"html" => Some(self.configs.entry(language).or_insert_with(|| {
|
||||||
ts::HighlightConfiguration::new(
|
ts::HighlightConfiguration::new(
|
||||||
tree_sitter_html::language(),
|
tree_sitter_html::language(),
|
||||||
tree_sitter_html::HIGHLIGHT_QUERY,
|
tree_sitter_html::HIGHLIGHTS_QUERY,
|
||||||
tree_sitter_html::INJECTION_QUERY,
|
tree_sitter_html::INJECTIONS_QUERY,
|
||||||
"",
|
"",
|
||||||
)
|
)
|
||||||
.expect("Highlighter::config: highlight configuration must be valid")
|
.expect("Highlighter::config: highlight configuration must be valid")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue