Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

Commit

Permalink
cli: Disable ruby highlighting by default
Browse files Browse the repository at this point in the history
See code comment for reasoning.
  • Loading branch information
cloudhead committed Oct 3, 2023
1 parent 35da28d commit 8479666
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion radicle-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
Expand Down
1 change: 1 addition & 0 deletions radicle-cli/src/terminal/highlight.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 8479666

Please sign in to comment.