cli: Disable `ruby` highlighting by default

See code comment for reasoning.
This commit is contained in:
cloudhead 2023-10-03 13:18:10 +02:00
parent 35da28d8af
commit 8479666731
No known key found for this signature in database
2 changed files with 4 additions and 1 deletions

View File

@ -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" }

View File

@ -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(),