fix: Perl atom should be quoted

Signed-off-by: Xuanwo <github@xuanwo.io>
pull/263/head
Xuanwo 2022-04-22 18:42:50 +07:00
parent b85f996ff0
commit 9dd5542031
No known key found for this signature in database
GPG Key ID: C423B4FA6B48E945
1 changed files with 3 additions and 1 deletions

@ -479,7 +479,9 @@ pub fn from_language(language: guess::Language) -> TreeSitterConfig {
TreeSitterConfig {
name: "Perl",
language,
atom_nodes: vec!["string"].into_iter().collect(),
atom_nodes: vec!["string_single_quoted", "string_double_quoted"]
.into_iter()
.collect(),
delimiter_tokens: vec![("(", ")"), ("{", "}"), ("[", "]")],
highlight_query: ts::Query::new(language, "").unwrap(),
}