Skip to content

Commit 5455646

Browse files
Update crates (#48)
1 parent da0cab4 commit 5455646

File tree

3 files changed

+38
-41
lines changed

3 files changed

+38
-41
lines changed

Cargo.lock

+35-38
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ixx/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ markdown = "1.0.0-alpha.21"
1414
serde_json = "1.0"
1515
anyhow = "1.0"
1616

17-
tree-sitter-highlight = "0.24"
17+
tree-sitter-highlight = "0.25"
1818
# when updating commit, also update HIGHLIGHT_NAMES in highlight.rs
1919
tree-sitter-nix = { git = "https://github.com/nix-community/tree-sitter-nix", rev = "4b952d99ce6fc795ff3cfa48b05637f2b1751d3b" }

ixx/src/utils/highlight.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ pub(crate) fn highlight(code: &str) -> String {
5858

5959
let mut renderer = HtmlRenderer::new();
6060
renderer
61-
.render(highlight_event, code.as_bytes(), &|Highlight(idx)| {
62-
HIGHLIGHT_NAME_CLASSES[idx].as_bytes()
61+
.render(highlight_event, code.as_bytes(), &|Highlight(idx), out| {
62+
out.extend(HIGHLIGHT_NAME_CLASSES[idx].as_bytes());
6363
})
6464
.expect("Failed to render HTML");
6565

0 commit comments

Comments
 (0)