Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
cli: Enable HTML syntax highlighting in diffs
cloudhead committed 2 years ago
commit ae709b00edc91971136774e217dfc3957137dd50
parent 95b5191533db1ffbd66e888b3503224db8f5d5e6
1 file changed +2 -3
modified radicle-cli/src/terminal/highlight.rs
@@ -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")