HTML: include doublequotes in attribute atoms

pull/315/head
Wilfred Hughes 2022-07-03 21:57:56 +07:00
parent 493a4bd62a
commit 2d43075841
2 changed files with 11 additions and 5 deletions

@ -53,10 +53,10 @@ sample_files/helpful-unit-test-before.el sample_files/helpful-unit-test-after.el
79597af48ff80bcf9f5d02d20c51606d -
sample_files/html_before.html sample_files/html_after.html
949b14014822274f3578636275c8e6d6 -
fdd3357ab16aa2c60a5f4f52912b91fa -
sample_files/html_simple_before.html sample_files/html_simple_after.html
13b374996a2b449f79638b2ddcf0c5d8 -
2c5a14df5b793bc136e37f263733b26f -
sample_files/identical_before.scala sample_files/identical_after.scala
9c7319f61833e46a0a8cb6c01cc997c9 -

@ -351,9 +351,15 @@ pub fn from_language(language: guess::Language) -> TreeSitterConfig {
TreeSitterConfig {
name: "HTML",
language,
atom_nodes: vec!["attribute_value", "comment", "raw_text", "tag_name", "text"]
.into_iter()
.collect(),
atom_nodes: vec![
"quoted_attribute_value",
"comment",
"raw_text",
"tag_name",
"text",
]
.into_iter()
.collect(),
delimiter_tokens: vec![("<", ">"), ("<!", ">"), ("<!--", "-->")]
.into_iter()
.collect(),