Skip to content

Commit 2d6c404

Browse files
committed
Updates parsers
1 parent 6018e6b commit 2d6c404

File tree

10 files changed

+49166
-42120
lines changed

10 files changed

+49166
-42120
lines changed

src/language_mozjs.rs

+10-10
Original file line numberDiff line numberDiff line change
@@ -228,12 +228,12 @@ pub enum Mozjs {
228228
TemplateStringRepeat1 = 223,
229229
ClassBodyRepeat1 = 224,
230230
FormalParametersRepeat1 = 225,
231-
ImportSpecifier = 226,
232-
ShorthandPropertyIdentifier = 227,
233-
ArrayPattern = 228,
234-
PropertyIdentifier = 229,
235-
ObjectPattern = 230,
236-
ExportSpecifier = 231,
231+
ArrayPattern = 226,
232+
ExportSpecifier = 227,
233+
ImportSpecifier = 228,
234+
ObjectPattern = 229,
235+
PropertyIdentifier = 230,
236+
ShorthandPropertyIdentifier = 231,
237237
StatementIdentifier = 232,
238238
Error = 233,
239239
}
@@ -467,12 +467,12 @@ impl Into<&'static str> for Mozjs {
467467
Mozjs::TemplateStringRepeat1 => "template_string_repeat1",
468468
Mozjs::ClassBodyRepeat1 => "class_body_repeat1",
469469
Mozjs::FormalParametersRepeat1 => "formal_parameters_repeat1",
470-
Mozjs::ImportSpecifier => "import_specifier",
471-
Mozjs::ShorthandPropertyIdentifier => "shorthand_property_identifier",
472470
Mozjs::ArrayPattern => "array_pattern",
473-
Mozjs::PropertyIdentifier => "property_identifier",
474-
Mozjs::ObjectPattern => "object_pattern",
475471
Mozjs::ExportSpecifier => "export_specifier",
472+
Mozjs::ImportSpecifier => "import_specifier",
473+
Mozjs::ObjectPattern => "object_pattern",
474+
Mozjs::PropertyIdentifier => "property_identifier",
475+
Mozjs::ShorthandPropertyIdentifier => "shorthand_property_identifier",
476476
Mozjs::StatementIdentifier => "statement_identifier",
477477
Mozjs::Error => "ERROR",
478478
}

tree-sitter-ccomments/src/node-types.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"fields": {},
1111
"children": {
1212
"multiple": true,
13-
"required": false,
13+
"required": true,
1414
"types": [
1515
{
1616
"type": "preproc_continuation_line",
@@ -64,19 +64,19 @@
6464
}
6565
},
6666
{
67-
"type": "nothing",
67+
"type": "comment",
6868
"named": true
6969
},
7070
{
71-
"type": "preproc_continuation_line",
71+
"type": "nothing",
7272
"named": true
7373
},
7474
{
75-
"type": "preproc_line",
75+
"type": "preproc_continuation_line",
7676
"named": true
7777
},
7878
{
79-
"type": "comment",
79+
"type": "preproc_line",
8080
"named": true
8181
}
8282
]

0 commit comments

Comments
 (0)