tree-sitter-html
Advanced tools
Comparing version 0.20.0 to 0.20.1
@@ -12,3 +12,3 @@ # tree-sitter-html | ||
tree-sitter = "0.20.10" | ||
tree-sitter-html = "0.20.0" | ||
tree-sitter-html = "0.20.1" | ||
``` | ||
@@ -15,0 +15,0 @@ |
@@ -34,3 +34,3 @@ /** | ||
rules: { | ||
fragment: $ => repeat($._node), | ||
document: $ => repeat($._node), | ||
@@ -135,3 +135,3 @@ doctype: $ => seq( | ||
// no more will ever be added. | ||
entity: _ => /&(#([xX][0-9a-fA-F]{1,6}|[0-9]{1,5})|[A-Za-z]{1,30});/, | ||
entity: _ => /&(#([xX][0-9a-fA-F]{1,6}|[0-9]{1,5})|[A-Za-z]{1,30});?/, | ||
@@ -138,0 +138,0 @@ quoted_attribute_value: $ => choice( |
{ | ||
"name": "tree-sitter-html", | ||
"version": "0.20.0", | ||
"version": "0.20.1", | ||
"description": "HTML grammar for tree-sitter", | ||
@@ -5,0 +5,0 @@ "main": "bindings/node", |
# tree-sitter-html | ||
[![build](https://github.com/tree-sitter/tree-sitter-html/actions/workflows/ci.yml/badge.svg)](https://github.com/tree-sitter/tree-sitter-html/actions/workflows/ci.yml) | ||
[![CI][ci]](https://github.com/tree-sitter/tree-sitter-html/actions/workflows/ci.yml) | ||
[![discord][discord]](https://discord.gg/w7nTvsVJhm) | ||
[![matrix][matrix]](https://matrix.to/#/#tree-sitter-chat:matrix.org) | ||
[![crates][crates]](https://crates.io/crates/tree-sitter-html) | ||
[![npm][npm]](https://www.npmjs.com/package/tree-sitter-html) | ||
@@ -9,2 +13,8 @@ HTML grammar for [tree-sitter](https://github.com/tree-sitter/tree-sitter). | ||
* [The HTML5 Spec](https://www.w3.org/TR/html5/syntax.html) | ||
- [The HTML5 Spec](https://www.w3.org/TR/html5/syntax.html) | ||
[ci]: https://img.shields.io/github/actions/workflow/status/tree-sitter/tree-sitter-html/ci.yml?logo=github&label=CI | ||
[discord]: https://img.shields.io/discord/1063097320771698699?logo=discord&label=discord | ||
[matrix]: https://img.shields.io/matrix/tree-sitter-chat%3Amatrix.org?logo=matrix&label=matrix | ||
[npm]: https://img.shields.io/npm/v/tree-sitter-html?logo=npm | ||
[crates]: https://img.shields.io/crates/v/tree-sitter-html?logo=rust |
{ | ||
"name": "html", | ||
"rules": { | ||
"fragment": { | ||
"document": { | ||
"type": "REPEAT", | ||
@@ -376,3 +376,3 @@ "content": { | ||
"type": "PATTERN", | ||
"value": "&(#([xX][0-9a-fA-F]{1,6}|[0-9]{1,5})|[A-Za-z]{1,30});" | ||
"value": "&(#([xX][0-9a-fA-F]{1,6}|[0-9]{1,5})|[A-Za-z]{1,30});?" | ||
}, | ||
@@ -502,2 +502,1 @@ "quoted_attribute_value": { | ||
} | ||
@@ -31,2 +31,41 @@ [ | ||
{ | ||
"type": "document", | ||
"named": true, | ||
"fields": {}, | ||
"children": { | ||
"multiple": true, | ||
"required": false, | ||
"types": [ | ||
{ | ||
"type": "doctype", | ||
"named": true | ||
}, | ||
{ | ||
"type": "element", | ||
"named": true | ||
}, | ||
{ | ||
"type": "entity", | ||
"named": true | ||
}, | ||
{ | ||
"type": "erroneous_end_tag", | ||
"named": true | ||
}, | ||
{ | ||
"type": "script_element", | ||
"named": true | ||
}, | ||
{ | ||
"type": "style_element", | ||
"named": true | ||
}, | ||
{ | ||
"type": "text", | ||
"named": true | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"type": "element", | ||
@@ -113,41 +152,2 @@ "named": true, | ||
{ | ||
"type": "fragment", | ||
"named": true, | ||
"fields": {}, | ||
"children": { | ||
"multiple": true, | ||
"required": false, | ||
"types": [ | ||
{ | ||
"type": "doctype", | ||
"named": true | ||
}, | ||
{ | ||
"type": "element", | ||
"named": true | ||
}, | ||
{ | ||
"type": "entity", | ||
"named": true | ||
}, | ||
{ | ||
"type": "erroneous_end_tag", | ||
"named": true | ||
}, | ||
{ | ||
"type": "script_element", | ||
"named": true | ||
}, | ||
{ | ||
"type": "style_element", | ||
"named": true | ||
}, | ||
{ | ||
"type": "text", | ||
"named": true | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"type": "quoted_attribute_value", | ||
@@ -154,0 +154,0 @@ "named": true, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
137361
20