Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
cli: Disable `ruby` highlighting by default
cloudhead committed 2 years ago
commit 8479666731847f3888e311e23aa1912fb21f9144
parent 35da28d8af08baece5a2f0d5baaa4fc3dc21ba6a
2 files changed +4 -1
modified radicle-cli/Cargo.toml
@@ -38,7 +38,9 @@ tree-sitter-css = { version = "0.19" }
tree-sitter-toml = { version = "0.20" }
tree-sitter-c = { version = "0.20" }
tree-sitter-python = { version = "0.20" }
-
tree-sitter-ruby = { version = "0.20" }
+
# N.b. This crate has a C++ token scanner that causes problems when building
+
# for the musl target. Hence it is optional for now.
+
tree-sitter-ruby = { version = "0.20", optional = true }
tree-sitter-bash = { version = "0.20" }
tree-sitter-go = { version = "0.20.0" }
tree-sitter-md = { version = "0.1.5" }
modified radicle-cli/src/terminal/highlight.rs
@@ -285,6 +285,7 @@ impl Highlighter {
                )
                .expect("Highlighter::config: highlight configuration must be valid")
            })),
+
            #[cfg(feature = "tree-sitter-ruby")]
            "ruby" => Some(self.configs.entry(language).or_insert_with(|| {
                ts::HighlightConfiguration::new(
                    tree_sitter_ruby::language(),