cargo fmt

pull/381/head 0.36.0
Wilfred Hughes 2022-09-17 20:17:40 +07:00
parent ba6d73bcf4
commit 5d75d81b1e
2 changed files with 4 additions and 2 deletions

@ -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();
}

@ -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,