@willbooster/tree-sitter-html 1.0.4 → 1.0.5
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 +2 -1
- package/grammar.js +1 -1
- package/package.json +1 -1
- package/tree-sitter-html.wasm +0 -0
- package/tree-sitter.json +1 -1
package/README.md
CHANGED
|
@@ -19,7 +19,8 @@ number, so it loads only with the WillBooster runtime, version 2.0.0 or later
|
|
|
19
19
|
[@willbooster/web-tree-sitter](https://www.npmjs.com/package/@willbooster/web-tree-sitter)); upstream's runtime rejects
|
|
20
20
|
it. Input that contains NUL characters can parse to a different tree than with upstream's 0.23.2 parser, because the
|
|
21
21
|
lexers that generator emits treat a NUL character as an ordinary character. This grammar also accepts literal `>`
|
|
22
|
-
characters in text nodes, which upstream 0.23.2 rejects.
|
|
22
|
+
characters and bare `&` in text nodes, which upstream 0.23.2 rejects. A bare `&` becomes its own `text` node beside
|
|
23
|
+
surrounding text, while character references remain `entity` nodes. Its scanner requires an HTML tag-name boundary after
|
|
23
24
|
`</script` and `</style`, so longer names and overlapping prefixes remain raw text. Closing-name comparisons
|
|
24
25
|
fold only ASCII letters, and embedded NUL characters remain part of raw-text content. Void elements close
|
|
25
26
|
before following text, entities, and complete comments, which become siblings instead of children.
|
package/grammar.js
CHANGED
package/package.json
CHANGED
package/tree-sitter-html.wasm
CHANGED
|
Binary file
|