cli: Disable `ruby` highlighting by default
See code comment for reasoning.
This commit is contained in:
parent
35da28d8af
commit
8479666731
|
|
@ -38,7 +38,9 @@ tree-sitter-css = { version = "0.19" }
|
||||||
tree-sitter-toml = { version = "0.20" }
|
tree-sitter-toml = { version = "0.20" }
|
||||||
tree-sitter-c = { version = "0.20" }
|
tree-sitter-c = { version = "0.20" }
|
||||||
tree-sitter-python = { 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-bash = { version = "0.20" }
|
||||||
tree-sitter-go = { version = "0.20.0" }
|
tree-sitter-go = { version = "0.20.0" }
|
||||||
tree-sitter-md = { version = "0.1.5" }
|
tree-sitter-md = { version = "0.1.5" }
|
||||||
|
|
|
||||||
|
|
@ -285,6 +285,7 @@ impl Highlighter {
|
||||||
)
|
)
|
||||||
.expect("Highlighter::config: highlight configuration must be valid")
|
.expect("Highlighter::config: highlight configuration must be valid")
|
||||||
})),
|
})),
|
||||||
|
#[cfg(feature = "tree-sitter-ruby")]
|
||||||
"ruby" => Some(self.configs.entry(language).or_insert_with(|| {
|
"ruby" => Some(self.configs.entry(language).or_insert_with(|| {
|
||||||
ts::HighlightConfiguration::new(
|
ts::HighlightConfiguration::new(
|
||||||
tree_sitter_ruby::language(),
|
tree_sitter_ruby::language(),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue