⬆️ tree-sitter-cli

This commit is contained in:
Max Brunsfeld 2020-03-02 13:32:53 -08:00
parent 2147dd298a
commit 8791121881
3 changed files with 23 additions and 1 deletions

View File

@ -16,7 +16,7 @@
"nan": "^2.14.0" "nan": "^2.14.0"
}, },
"devDependencies": { "devDependencies": {
"tree-sitter-cli": "^0.16.1" "tree-sitter-cli": "^0.16.5"
}, },
"scripts": { "scripts": {
"test": "tree-sitter test && tree-sitter parse examples/*.html --quiet --time", "test": "tree-sitter test && tree-sitter parse examples/*.html --quiet --time",

View File

@ -278,6 +278,22 @@
"type": "attribute_value", "type": "attribute_value",
"named": true "named": true
}, },
{
"type": "doctype",
"named": false
},
{
"type": "erroneous_end_tag_name",
"named": true
},
{
"type": "raw_text",
"named": true
},
{
"type": "tag_name",
"named": true
},
{ {
"type": "text", "type": "text",
"named": true "named": true

6
src/parser.c vendored
View File

@ -1867,6 +1867,9 @@ static TSParseActionEntry ts_parse_actions[] = {
[251] = {.count = 1, .reusable = true}, SHIFT(90), [251] = {.count = 1, .reusable = true}, SHIFT(90),
}; };
#ifdef __cplusplus
extern "C" {
#endif
void *tree_sitter_html_external_scanner_create(void); void *tree_sitter_html_external_scanner_create(void);
void tree_sitter_html_external_scanner_destroy(void *); void tree_sitter_html_external_scanner_destroy(void *);
bool tree_sitter_html_external_scanner_scan(void *, TSLexer *, const bool *); bool tree_sitter_html_external_scanner_scan(void *, TSLexer *, const bool *);
@ -1909,3 +1912,6 @@ extern const TSLanguage *tree_sitter_html(void) {
}; };
return &language; return &language;
} }
#ifdef __cplusplus
}
#endif