Skip to content

Commit

Permalink
revert(syntect): downgrade syntect version to see if tests pass on CI
Browse files Browse the repository at this point in the history
(all tests pass locally on Mac)
  • Loading branch information
Ninjani committed Jun 9, 2022
1 parent 152c7c3 commit fa84619
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
13 changes: 9 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ indicatif = "0.16.2"
skim = "0.9.4"

# Terminal syntax highlighting
syntect = { version = "5.0.0", default-features = false, features = ["default-fancy"] }
syntect = { version = "4.6.0", default-features = false, features = ["default-fancy"] }
hex = "0.4.3"
grep-cli = "0.1.6"
termcolor = "1.1.3"
Expand Down
2 changes: 1 addition & 1 deletion src/language.rs
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ impl CodeHighlight {
let mut h = HighlightLines::new(syntax, &self.theme_set.themes[&self.theme_name]);
for line in LinesWithEndings::from(code) {
colorized.extend(
h.highlight_line(line, &self.syntax_set)?
h.highlight(line, &self.syntax_set)
.into_iter()
.map(|(style, s)| (style, s.to_owned())),
);
Expand Down

0 comments on commit fa84619

Please sign in to comment.