Treat quoted_keys as atoms in TOML

pull/502/head
Wilfred Hughes 2023-03-15 15:12:33 +07:00
parent 5d617a4c3f
commit a67be0f845
2 changed files with 3 additions and 1 deletions

@ -6,6 +6,8 @@ Added support for Ada.
`.ino` files are now treated as C++.
Improved parsing for TOML.
### Display
Difftastic no longer uses purple to highlight regions that are missing

@ -898,7 +898,7 @@ pub fn from_language(language: guess::Language) -> TreeSitterConfig {
let language = unsafe { tree_sitter_toml() };
TreeSitterConfig {
language,
atom_nodes: vec!["string"].into_iter().collect(),
atom_nodes: vec!["string", "quoted_key"].into_iter().collect(),
delimiter_tokens: vec![("{", "}"), ("[", "]")],
highlight_query: ts::Query::new(
language,