Regenerate

This commit is contained in:
Max Brunsfeld 2019-02-19 11:11:35 -08:00
parent 30b7bf0f46
commit cc9971242f
6 changed files with 988 additions and 1023 deletions

View File

@ -24,6 +24,7 @@
}, },
"tree-sitter": [ "tree-sitter": [
{ {
"name": "HTML",
"textmate-scope": "text.html.basic", "textmate-scope": "text.html.basic",
"file-types": ["html"], "file-types": ["html"],
"highlights": "src/highlights.json", "highlights": "src/highlights.json",

View File

@ -7,7 +7,7 @@
{ {
"type": "attribute_name", "type": "attribute_name",
"named": true, "named": true,
"state_id": 5 "state_id": 1
}, },
{ {
"type": "attribute_value", "type": "attribute_value",
@ -17,32 +17,32 @@
{ {
"type": "comment", "type": "comment",
"named": true, "named": true,
"state_id": 1 "state_id": 3
}, },
{ {
"type": "doctype", "type": "doctype",
"named": true, "named": true,
"state_id": 3 "state_id": 4
}, },
{ {
"type": "erroneous_end_tag_name", "type": "erroneous_end_tag_name",
"named": true, "named": true,
"state_id": 4 "state_id": 5
}, },
{ {
"type": "script_element", "type": "script_element",
"named": true, "named": true,
"state_id": 7 "state_id": 6
}, },
{ {
"type": "style_element", "type": "style_element",
"named": true, "named": true,
"state_id": 6 "state_id": 7
}, },
{ {
"type": "tag_name", "type": "tag_name",
"named": true, "named": true,
"state_id": 4 "state_id": 5
} }
], ],
"default_next_state_id": 0 "default_next_state_id": 0
@ -54,7 +54,7 @@
{ {
"type": "attribute_name", "type": "attribute_name",
"named": true, "named": true,
"state_id": 5 "state_id": 1
}, },
{ {
"type": "attribute_value", "type": "attribute_value",
@ -64,32 +64,32 @@
{ {
"type": "comment", "type": "comment",
"named": true, "named": true,
"state_id": 1 "state_id": 3
}, },
{ {
"type": "doctype", "type": "doctype",
"named": true, "named": true,
"state_id": 3 "state_id": 4
}, },
{ {
"type": "erroneous_end_tag_name", "type": "erroneous_end_tag_name",
"named": true, "named": true,
"state_id": 4 "state_id": 5
}, },
{ {
"type": "script_element", "type": "script_element",
"named": true, "named": true,
"state_id": 7 "state_id": 6
}, },
{ {
"type": "style_element", "type": "style_element",
"named": true, "named": true,
"state_id": 6 "state_id": 7
}, },
{ {
"type": "tag_name", "type": "tag_name",
"named": true, "named": true,
"state_id": 4 "state_id": 5
} }
], ],
"default_next_state_id": 0 "default_next_state_id": 0
@ -101,7 +101,7 @@
{ {
"type": "attribute_name", "type": "attribute_name",
"named": true, "named": true,
"state_id": 5 "state_id": 1
}, },
{ {
"type": "attribute_value", "type": "attribute_value",
@ -111,32 +111,32 @@
{ {
"type": "comment", "type": "comment",
"named": true, "named": true,
"state_id": 1 "state_id": 3
}, },
{ {
"type": "doctype", "type": "doctype",
"named": true, "named": true,
"state_id": 3 "state_id": 4
}, },
{ {
"type": "erroneous_end_tag_name", "type": "erroneous_end_tag_name",
"named": true, "named": true,
"state_id": 4 "state_id": 5
}, },
{ {
"type": "script_element", "type": "script_element",
"named": true, "named": true,
"state_id": 7 "state_id": 6
}, },
{ {
"type": "style_element", "type": "style_element",
"named": true, "named": true,
"state_id": 6 "state_id": 7
}, },
{ {
"type": "tag_name", "type": "tag_name",
"named": true, "named": true,
"state_id": 4 "state_id": 5
} }
], ],
"default_next_state_id": 0 "default_next_state_id": 0
@ -148,7 +148,7 @@
{ {
"type": "attribute_name", "type": "attribute_name",
"named": true, "named": true,
"state_id": 5 "state_id": 1
}, },
{ {
"type": "attribute_value", "type": "attribute_value",
@ -158,32 +158,32 @@
{ {
"type": "comment", "type": "comment",
"named": true, "named": true,
"state_id": 1 "state_id": 3
}, },
{ {
"type": "doctype", "type": "doctype",
"named": true, "named": true,
"state_id": 3 "state_id": 4
}, },
{ {
"type": "erroneous_end_tag_name", "type": "erroneous_end_tag_name",
"named": true, "named": true,
"state_id": 4 "state_id": 5
}, },
{ {
"type": "script_element", "type": "script_element",
"named": true, "named": true,
"state_id": 7 "state_id": 6
}, },
{ {
"type": "style_element", "type": "style_element",
"named": true, "named": true,
"state_id": 6 "state_id": 7
}, },
{ {
"type": "tag_name", "type": "tag_name",
"named": true, "named": true,
"state_id": 4 "state_id": 5
} }
], ],
"default_next_state_id": 0 "default_next_state_id": 0
@ -195,7 +195,7 @@
{ {
"type": "attribute_name", "type": "attribute_name",
"named": true, "named": true,
"state_id": 5 "state_id": 1
}, },
{ {
"type": "attribute_value", "type": "attribute_value",
@ -205,32 +205,32 @@
{ {
"type": "comment", "type": "comment",
"named": true, "named": true,
"state_id": 1 "state_id": 3
}, },
{ {
"type": "doctype", "type": "doctype",
"named": true, "named": true,
"state_id": 3 "state_id": 4
}, },
{ {
"type": "erroneous_end_tag_name", "type": "erroneous_end_tag_name",
"named": true, "named": true,
"state_id": 4 "state_id": 5
}, },
{ {
"type": "script_element", "type": "script_element",
"named": true, "named": true,
"state_id": 7 "state_id": 6
}, },
{ {
"type": "style_element", "type": "style_element",
"named": true, "named": true,
"state_id": 6 "state_id": 7
}, },
{ {
"type": "tag_name", "type": "tag_name",
"named": true, "named": true,
"state_id": 4 "state_id": 5
} }
], ],
"default_next_state_id": 0 "default_next_state_id": 0
@ -242,7 +242,7 @@
{ {
"type": "attribute_name", "type": "attribute_name",
"named": true, "named": true,
"state_id": 5 "state_id": 1
}, },
{ {
"type": "attribute_value", "type": "attribute_value",
@ -252,32 +252,32 @@
{ {
"type": "comment", "type": "comment",
"named": true, "named": true,
"state_id": 1 "state_id": 3
}, },
{ {
"type": "doctype", "type": "doctype",
"named": true, "named": true,
"state_id": 3 "state_id": 4
}, },
{ {
"type": "erroneous_end_tag_name", "type": "erroneous_end_tag_name",
"named": true, "named": true,
"state_id": 4 "state_id": 5
}, },
{ {
"type": "script_element", "type": "script_element",
"named": true, "named": true,
"state_id": 7 "state_id": 6
}, },
{ {
"type": "style_element", "type": "style_element",
"named": true, "named": true,
"state_id": 6 "state_id": 7
}, },
{ {
"type": "tag_name", "type": "tag_name",
"named": true, "named": true,
"state_id": 4 "state_id": 5
} }
], ],
"default_next_state_id": 0 "default_next_state_id": 0
@ -289,7 +289,7 @@
{ {
"type": "attribute_name", "type": "attribute_name",
"named": true, "named": true,
"state_id": 5 "state_id": 1
}, },
{ {
"type": "attribute_value", "type": "attribute_value",
@ -299,32 +299,32 @@
{ {
"type": "comment", "type": "comment",
"named": true, "named": true,
"state_id": 1 "state_id": 3
}, },
{ {
"type": "doctype", "type": "doctype",
"named": true, "named": true,
"state_id": 3 "state_id": 4
}, },
{ {
"type": "erroneous_end_tag_name", "type": "erroneous_end_tag_name",
"named": true, "named": true,
"state_id": 4 "state_id": 5
}, },
{ {
"type": "script_element", "type": "script_element",
"named": true, "named": true,
"state_id": 7 "state_id": 6
}, },
{ {
"type": "style_element", "type": "style_element",
"named": true, "named": true,
"state_id": 6 "state_id": 7
}, },
{ {
"type": "tag_name", "type": "tag_name",
"named": true, "named": true,
"state_id": 4 "state_id": 5
} }
], ],
"default_next_state_id": 0 "default_next_state_id": 0
@ -336,7 +336,7 @@
{ {
"type": "attribute_name", "type": "attribute_name",
"named": true, "named": true,
"state_id": 5 "state_id": 1
}, },
{ {
"type": "attribute_value", "type": "attribute_value",
@ -346,32 +346,32 @@
{ {
"type": "comment", "type": "comment",
"named": true, "named": true,
"state_id": 1 "state_id": 3
}, },
{ {
"type": "doctype", "type": "doctype",
"named": true, "named": true,
"state_id": 3 "state_id": 4
}, },
{ {
"type": "erroneous_end_tag_name", "type": "erroneous_end_tag_name",
"named": true, "named": true,
"state_id": 4 "state_id": 5
}, },
{ {
"type": "script_element", "type": "script_element",
"named": true, "named": true,
"state_id": 7 "state_id": 6
}, },
{ {
"type": "style_element", "type": "style_element",
"named": true, "named": true,
"state_id": 6 "state_id": 7
}, },
{ {
"type": "tag_name", "type": "tag_name",
"named": true, "named": true,
"state_id": 4 "state_id": 5
} }
], ],
"default_next_state_id": 0 "default_next_state_id": 0
@ -380,45 +380,45 @@
"property_sets": [ "property_sets": [
{}, {},
{ {
"scope": "comment" "scope": "attribute"
}, },
{ {
"scope": "string" "scope": "string"
}, },
{
"scope": "comment"
},
{ {
"scope": "constant" "scope": "constant"
}, },
{ {
"scope": "tag" "scope": "tag"
}, },
{
"scope": "attribute"
},
{ {
"injection-content": { "injection-content": {
"name": "child",
"args": [ "args": [
{ {
"name": "this", "args": [],
"args": [] "name": "this"
}, },
1 1
] ],
}, "name": "child"
"injection-language": "css"
},
{
"injection-content": {
"name": "child",
"args": [
{
"name": "this",
"args": []
},
1
]
}, },
"injection-language": "javascript" "injection-language": "javascript"
},
{
"injection-content": {
"args": [
{
"args": [],
"name": "this"
},
1
],
"name": "child"
},
"injection-language": "css"
} }
] ]
} }

View File

@ -7,12 +7,12 @@
{ {
"type": "script_element", "type": "script_element",
"named": true, "named": true,
"state_id": 2 "state_id": 1
}, },
{ {
"type": "style_element", "type": "style_element",
"named": true, "named": true,
"state_id": 1 "state_id": 2
} }
], ],
"default_next_state_id": 0 "default_next_state_id": 0
@ -24,12 +24,12 @@
{ {
"type": "script_element", "type": "script_element",
"named": true, "named": true,
"state_id": 2 "state_id": 1
}, },
{ {
"type": "style_element", "type": "style_element",
"named": true, "named": true,
"state_id": 1 "state_id": 2
} }
], ],
"default_next_state_id": 0 "default_next_state_id": 0
@ -41,12 +41,12 @@
{ {
"type": "script_element", "type": "script_element",
"named": true, "named": true,
"state_id": 2 "state_id": 1
}, },
{ {
"type": "style_element", "type": "style_element",
"named": true, "named": true,
"state_id": 1 "state_id": 2
} }
], ],
"default_next_state_id": 0 "default_next_state_id": 0
@ -56,29 +56,29 @@
{}, {},
{ {
"injection-content": { "injection-content": {
"name": "child",
"args": [ "args": [
{ {
"name": "this", "args": [],
"args": [] "name": "this"
}, },
1 1
] ],
"name": "child"
}, },
"injection-language": "css" "injection-language": "javascript"
}, },
{ {
"injection-content": { "injection-content": {
"name": "child",
"args": [ "args": [
{ {
"name": "this", "args": [],
"args": [] "name": "this"
}, },
1 1
] ],
"name": "child"
}, },
"injection-language": "javascript" "injection-language": "css"
} }
] ]
} }

1820
src/parser.c vendored

File diff suppressed because it is too large Load Diff

View File

@ -13,7 +13,7 @@ extern "C" {
#define ts_builtin_sym_end 0 #define ts_builtin_sym_end 0
#define TREE_SITTER_SERIALIZATION_BUFFER_SIZE 1024 #define TREE_SITTER_SERIALIZATION_BUFFER_SIZE 1024
#ifndef TREE_SITTER_RUNTIME_H_ #ifndef TREE_SITTER_API_H_
typedef uint16_t TSSymbol; typedef uint16_t TSSymbol;
typedef struct TSLanguage TSLanguage; typedef struct TSLanguage TSLanguage;
#endif #endif