Skip to content

Commit

Permalink
Whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
gcr committed Jan 31, 2024
1 parent 5748274 commit f546f5b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/parse/tree_sitter_parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -730,10 +730,16 @@ pub(crate) fn from_language(language: guess::Language) -> TreeSitterConfig {
let language = unsafe { tree_sitter_nim() };
TreeSitterConfig {
language,
atom_nodes: vec!["string_expression", "indented_string_expression", "long_string_expression"]
atom_nodes: vec![
"string_expression",
"indented_string_expression",
"long_string_expression",
]
.into_iter()
.collect(),
delimiter_tokens: vec![("{", "}"), ("[", "]"), ("(", ")")]
.into_iter()
.collect(),
delimiter_tokens: vec![("{", "}"), ("[", "]"), ("(", ")")].into_iter().collect(),
highlight_query: ts::Query::new(
language,
include_str!("../../vendored_parsers/highlights/nim.scm"),
Expand Down

0 comments on commit f546f5b

Please sign in to comment.