@willbooster/tree-sitter-html 1.0.2 → 1.0.3
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/README.md +5 -2
- package/package.json +10 -10
- package/tree-sitter-html.wasm +0 -0
- package/tree-sitter.json +1 -1
package/README.md
CHANGED
|
@@ -19,8 +19,11 @@ it. Input that contains NUL characters can parse to a different tree than with u
|
|
|
19
19
|
lexers that generator emits treat a NUL character as an ordinary character. This grammar also accepts literal `>`
|
|
20
20
|
characters in text nodes, which upstream 0.23.2 rejects. Its scanner requires an HTML tag-name boundary after
|
|
21
21
|
`</script` and `</style`, so longer names and overlapping prefixes remain raw text. Closing-name comparisons
|
|
22
|
-
fold only ASCII letters, and embedded NUL characters remain part of raw-text content.
|
|
23
|
-
|
|
22
|
+
fold only ASCII letters, and embedded NUL characters remain part of raw-text content. Void elements close
|
|
23
|
+
before following text, entities, and complete comments, which become siblings instead of children.
|
|
24
|
+
This depends on the open-tag stack fitting in the scanner serialization buffer; deep nesting, especially with
|
|
25
|
+
custom tag names, can exhaust it and retain the following content under the void element.
|
|
26
|
+
Malformed input after a void element can replace its enclosing element with an `ERROR` node during recovery.
|
|
24
27
|
|
|
25
28
|
## Usage
|
|
26
29
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@willbooster/tree-sitter-html",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "HTML grammar for tree-sitter",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"incremental",
|
|
@@ -46,19 +46,19 @@
|
|
|
46
46
|
"@vitest/browser-playwright": "5.0.3",
|
|
47
47
|
"@willbooster/oxfmt-config": "1.2.2",
|
|
48
48
|
"@willbooster/oxlint-config": "1.4.8",
|
|
49
|
-
"@willbooster/wb": "22.
|
|
50
|
-
"@willbooster/web-tree-sitter": "2.0.
|
|
51
|
-
"conventional-changelog-conventionalcommits": "10.4.
|
|
52
|
-
"lefthook": "2.1
|
|
53
|
-
"oxfmt": "0.
|
|
54
|
-
"oxlint": "1.
|
|
55
|
-
"oxlint-tsgolint": "7.0.
|
|
56
|
-
"playwright": "1.
|
|
49
|
+
"@willbooster/wb": "22.26.1",
|
|
50
|
+
"@willbooster/web-tree-sitter": "2.0.24",
|
|
51
|
+
"conventional-changelog-conventionalcommits": "10.4.1",
|
|
52
|
+
"lefthook": "2.2.1",
|
|
53
|
+
"oxfmt": "0.72.0",
|
|
54
|
+
"oxlint": "1.87.0",
|
|
55
|
+
"oxlint-tsgolint": "7.0.2004",
|
|
56
|
+
"playwright": "1.64.0",
|
|
57
57
|
"semantic-release": "25.0.9",
|
|
58
58
|
"sort-package-json": "4.0.0",
|
|
59
59
|
"typescript": "7.0.2",
|
|
60
60
|
"vitest": "5.0.3",
|
|
61
|
-
"wrangler": "4.
|
|
61
|
+
"wrangler": "4.149.0"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
64
|
"@willbooster/web-tree-sitter": "^2.0.0"
|
package/tree-sitter-html.wasm
CHANGED
|
Binary file
|