Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Wilfred committed Sep 18, 2022
1 parent ba6d73b commit 5d75d81
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/display/style.rs
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ pub fn color_positions(
if language.is_some() {
style = style.underline();
}

if syntax_highlight && matches!(highlight, TokenKind::Atom(AtomKind::Comment)) {
style = style.italic();
}
Expand Down
4 changes: 3 additions & 1 deletion src/parse/tree_sitter_parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,9 @@ pub fn from_language(language: guess::Language) -> TreeSitterConfig {
let language = unsafe { tree_sitter_hare() };
TreeSitterConfig {
language,
atom_nodes: vec!["string_constant", "rune_constant"].into_iter().collect(),
atom_nodes: vec!["string_constant", "rune_constant"]
.into_iter()
.collect(),
delimiter_tokens: vec![("[", "]"), ("(", ")"), ("{", "}")],
highlight_query: ts::Query::new(
language,
Expand Down

0 comments on commit 5d75d81

Please sign in to comment.