@willbooster/tree-sitter-html 18.0.1 → 19.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/grammar.js +1 -2
- package/package.json +1 -1
- package/tree-sitter-html.wasm +0 -0
- package/tree-sitter.json +2 -2
package/grammar.js
CHANGED
|
@@ -35,6 +35,7 @@ module.exports = grammar({
|
|
|
35
35
|
$._discarded_start_tag,
|
|
36
36
|
$._missing_start_tag_end,
|
|
37
37
|
$._void_start_tag_name,
|
|
38
|
+
$.entity,
|
|
38
39
|
],
|
|
39
40
|
|
|
40
41
|
rules: {
|
|
@@ -163,8 +164,6 @@ module.exports = grammar({
|
|
|
163
164
|
)),
|
|
164
165
|
),
|
|
165
166
|
|
|
166
|
-
entity: _ => token(/&(#([xX][0-9a-fA-F]+|[0-9]+)|[A-Za-z][A-Za-z0-9]*);?/),
|
|
167
|
-
|
|
168
167
|
singlequoted_attribute_value: $ => seq('\'', optional(alias(repeat1(choice(
|
|
169
168
|
alias($._attribute_entity, $.entity),
|
|
170
169
|
token.immediate(/[^'&]+/),
|
package/package.json
CHANGED
package/tree-sitter-html.wasm
CHANGED
|
Binary file
|
package/tree-sitter.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"path": ".",
|
|
9
9
|
"external-files": [
|
|
10
10
|
"src/tag.h",
|
|
11
|
-
"src/
|
|
11
|
+
"src/characterReference.h",
|
|
12
12
|
"src/entities.h"
|
|
13
13
|
],
|
|
14
14
|
"file-types": [
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
}
|
|
19
19
|
],
|
|
20
20
|
"metadata": {
|
|
21
|
-
"version": "
|
|
21
|
+
"version": "19.0.0",
|
|
22
22
|
"license": "MIT",
|
|
23
23
|
"description": "HTML grammar for tree-sitter",
|
|
24
24
|
"authors": [
|