mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-21 02:20:43 +08:00
cli: Disable html highlighting by default
See code comment for reasoning. This is fixed in v0.20.0 which is not out yet.
This commit is contained in:
@@ -33,7 +33,9 @@ tree-sitter = { version = "0.20.0" }
|
||||
tree-sitter-highlight = { version = "0.20" }
|
||||
tree-sitter-rust = { version = "0.20" }
|
||||
tree-sitter-typescript = { version = "0.20" }
|
||||
tree-sitter-html = { version = "0.19" }
|
||||
# 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-html = { version = "0.19", optional = true }
|
||||
tree-sitter-css = { version = "0.19" }
|
||||
tree-sitter-toml = { version = "0.20" }
|
||||
tree-sitter-c = { version = "0.20" }
|
||||
|
||||
@@ -304,6 +304,7 @@ 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(),
|
||||
|
||||
Reference in New Issue
Block a user