diff --git a/CHANGELOG.md b/CHANGELOG.md index 0d0f2d77d0..efdea59255 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,8 @@ Added support for Salesforce Apex. +Improved parsing of regex literals in Clojure. + ### Display Fixed a rare crash when the last non-blank line had changes for diff --git a/src/parse/tree_sitter_parser.rs b/src/parse/tree_sitter_parser.rs index bc155aabab..a18d89412e 100644 --- a/src/parse/tree_sitter_parser.rs +++ b/src/parse/tree_sitter_parser.rs @@ -224,7 +224,7 @@ pub(crate) fn from_language(language: guess::Language) -> TreeSitterConfig { let language = unsafe { tree_sitter_clojure() }; TreeSitterConfig { language, - atom_nodes: vec!["kwd_lit"].into_iter().collect(), + atom_nodes: vec!["kwd_lit", "regex_lit"].into_iter().collect(), delimiter_tokens: vec![("{", "}"), ("(", ")"), ("[", "]")] .into_iter() .collect(),