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

Commit

Permalink
cli: Disable html highlighting by default
Browse files Browse the repository at this point in the history
See code comment for reasoning. This is fixed in v0.20.0 which is not
out yet.
  • Loading branch information
cloudhead committed Oct 3, 2023
1 parent 8479666 commit 2011f2b
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 @@ -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" }
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 @@ -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(),
Expand Down

0 comments on commit 2011f2b

Please sign in to comment.