Skip to content

Commit 99764bd

Browse files
authored
Regenerate tree-sitter-mozcpp grammars (mozilla#985)
1 parent 8cd3ce6 commit 99764bd

File tree

10 files changed

+271475
-263937
lines changed

10 files changed

+271475
-263937
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ tree-sitter-python = "=0.20.2"
3535
tree-sitter-rust = "=0.20.3"
3636
tree-sitter-preproc = { path = "./tree-sitter-preproc", version = "=0.20.1" }
3737
tree-sitter-ccomment = { path = "./tree-sitter-ccomment", version = "=0.20.0" }
38-
tree-sitter-mozcpp = { path = "./tree-sitter-mozcpp", version = "=0.20.1" }
38+
tree-sitter-mozcpp = { path = "./tree-sitter-mozcpp", version = "=0.20.2" }
3939
tree-sitter-mozjs = { path = "./tree-sitter-mozjs", version = "=0.20.0" }
4040

4141
[dev-dependencies]

enums/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ tree-sitter-python = "=0.20.2"
1616
tree-sitter-rust = "=0.20.3"
1717
tree-sitter-preproc = { path = "../tree-sitter-preproc", version = "=0.20.1" }
1818
tree-sitter-ccomment = { path = "../tree-sitter-ccomment", version = "=0.20.0" }
19-
tree-sitter-mozcpp = { path = "../tree-sitter-mozcpp", version = "=0.20.1" }
19+
tree-sitter-mozcpp = { path = "../tree-sitter-mozcpp", version = "=0.20.2" }
2020
tree-sitter-mozjs = { path = "../tree-sitter-mozjs", version = "=0.20.0" }
2121

2222
[profile.release]

src/languages/language_cpp.rs

Lines changed: 159 additions & 161 deletions
Original file line numberDiff line numberDiff line change
@@ -335,166 +335,165 @@ pub enum Cpp {
335335
ParameterList = 328,
336336
ParameterDeclaration = 329,
337337
AttributedStatement = 330,
338-
AttributedStatement2 = 331,
339-
LabeledStatement = 332,
340-
ExpressionStatement = 333,
341-
IfStatement = 334,
342-
SwitchStatement = 335,
343-
CaseStatement = 336,
344-
WhileStatement = 337,
345-
DoStatement = 338,
346-
ForStatement = 339,
347-
ReturnStatement = 340,
348-
BreakStatement = 341,
349-
ContinueStatement = 342,
350-
GotoStatement = 343,
351-
Expression = 344,
352-
CommaExpression = 345,
353-
ConditionalExpression = 346,
354-
AssignmentExpression = 347,
355-
PointerExpression = 348,
356-
UnaryExpression2 = 349,
357-
BinaryExpression2 = 350,
358-
UpdateExpression = 351,
359-
CastExpression = 352,
360-
TypeDescriptor = 353,
361-
SizeofExpression = 354,
362-
SubscriptExpression = 355,
363-
CallExpression2 = 356,
364-
ArgumentList2 = 357,
365-
FieldExpression = 358,
366-
CompoundLiteralExpression = 359,
367-
ParenthesizedExpression2 = 360,
368-
InitializerList = 361,
369-
InitializerPair = 362,
370-
SubscriptDesignator = 363,
371-
FieldDesignator = 364,
372-
CharLiteral = 365,
373-
ConcatenatedString = 366,
374-
StringLiteral = 367,
375-
EmptyDeclaration = 368,
376-
Decltype = 369,
377-
ClassSpecifier = 370,
378-
ClassName = 371,
379-
VirtualSpecifier = 372,
380-
VirtualFunctionSpecifier = 373,
381-
ExplicitFunctionSpecifier = 374,
382-
BaseClassClause = 375,
383-
EnumBaseClause = 376,
384-
DependentType = 377,
385-
TemplateDeclaration = 378,
386-
TemplateInstantiation = 379,
387-
TemplateParameterList = 380,
388-
TypeParameterDeclaration = 381,
389-
VariadicTypeParameterDeclaration = 382,
390-
OptionalTypeParameterDeclaration = 383,
391-
TemplateTemplateParameterDeclaration = 384,
392-
OptionalParameterDeclaration = 385,
393-
VariadicParameterDeclaration = 386,
394-
VariadicDeclarator = 387,
395-
ReferenceDeclarator = 388,
396-
OperatorCast = 389,
397-
FieldInitializerList = 390,
398-
FieldInitializer = 391,
399-
FunctionDefinition2 = 392,
400-
ConstructorSpecifiers = 393,
401-
FunctionDefinition3 = 394,
402-
Declaration2 = 395,
403-
FunctionDefinition4 = 396,
404-
Declaration3 = 397,
405-
DefaultMethodClause = 398,
406-
DeleteMethodClause = 399,
407-
FriendDeclaration = 400,
408-
AccessSpecifier = 401,
409-
ReferenceDeclarator2 = 402,
410-
ReferenceDeclarator3 = 403,
411-
AbstractReferenceDeclarator = 404,
412-
StructuredBindingDeclarator = 405,
413-
RefQualifier = 406,
414-
TrailingReturnType = 407,
415-
Noexcept = 408,
416-
ThrowSpecifier = 409,
417-
TemplateType = 410,
418-
TemplateMethod = 411,
419-
TemplateFunction = 412,
420-
TemplateArgumentList = 413,
421-
NamespaceDefinition = 414,
422-
NamespaceDefinitionName = 415,
423-
UsingDeclaration = 416,
424-
AliasDeclaration = 417,
425-
StaticAssertDeclaration = 418,
426-
ConditionClause = 419,
427-
Declaration4 = 420,
428-
ForRangeLoop = 421,
429-
CoReturnStatement = 422,
430-
CoYieldStatement = 423,
431-
ThrowStatement = 424,
432-
TryStatement = 425,
433-
CatchClause = 426,
434-
CoAwaitExpression = 427,
435-
NewExpression = 428,
436-
NewDeclarator = 429,
437-
DeleteExpression = 430,
438-
LambdaExpression = 431,
439-
LambdaCaptureSpecifier = 432,
440-
LambdaDefaultCapture = 433,
441-
ParameterPackExpansion = 434,
442-
ParameterPackExpansion2 = 435,
443-
DestructorName = 436,
444-
DependentName = 437,
445-
DependentName2 = 438,
446-
DependentName3 = 439,
447-
ScopeResolution = 440,
448-
QualifiedIdentifier = 441,
449-
QualifiedIdentifier2 = 442,
450-
QualifiedIdentifier3 = 443,
451-
QualifiedIdentifier4 = 444,
452-
OperatorName = 445,
453-
UserDefinedLiteral = 446,
454-
AloneMacroCall = 447,
455-
CallMacroWithDeclFirstArg = 448,
456-
MacroStatement = 449,
457-
MacroAnnotation = 450,
458-
TranslationUnitRepeat1 = 451,
459-
PreprocParamsRepeat1 = 452,
460-
PreprocIfInFieldDeclarationListRepeat1 = 453,
461-
PreprocArgumentListRepeat1 = 454,
462-
DeclarationRepeat1 = 455,
463-
TypeDefinitionRepeat1 = 456,
464-
TypeDefinitionRepeat2 = 457,
465-
DeclarationSpecifiersRepeat1 = 458,
466-
AttributeDeclarationRepeat1 = 459,
467-
AttributedDeclaratorRepeat1 = 460,
468-
PointerDeclaratorRepeat1 = 461,
469-
FunctionDeclaratorRepeat1 = 462,
470-
FunctionDeclaratorRepeat2 = 463,
471-
AbstractFunctionDeclaratorRepeat1 = 464,
472-
SizedTypeSpecifierRepeat1 = 465,
473-
EnumeratorListRepeat1 = 466,
474-
FieldDeclarationRepeat1 = 467,
475-
ParameterListRepeat1 = 468,
476-
CaseStatementRepeat1 = 469,
477-
ArgumentListRepeat1 = 470,
478-
InitializerListRepeat1 = 471,
479-
InitializerPairRepeat1 = 472,
480-
ConcatenatedStringRepeat1 = 473,
481-
StringLiteralRepeat1 = 474,
482-
ClassSpecifierRepeat1 = 475,
483-
BaseClassClauseRepeat1 = 476,
484-
TemplateParameterListRepeat1 = 477,
485-
FieldInitializerListRepeat1 = 478,
486-
OperatorCastDefinitionRepeat1 = 479,
487-
StructuredBindingDeclaratorRepeat1 = 480,
488-
ThrowSpecifierRepeat1 = 481,
489-
TemplateArgumentListRepeat1 = 482,
490-
TryStatementRepeat1 = 483,
491-
LambdaCaptureSpecifierRepeat1 = 484,
492-
AloneMacroCallRepeat1 = 485,
493-
FieldIdentifier = 486,
494-
NamespaceIdentifier = 487,
495-
StatementIdentifier = 488,
496-
TypeIdentifier = 489,
497-
Error = 490,
338+
LabeledStatement = 331,
339+
ExpressionStatement = 332,
340+
IfStatement = 333,
341+
SwitchStatement = 334,
342+
CaseStatement = 335,
343+
WhileStatement = 336,
344+
DoStatement = 337,
345+
ForStatement = 338,
346+
ReturnStatement = 339,
347+
BreakStatement = 340,
348+
ContinueStatement = 341,
349+
GotoStatement = 342,
350+
Expression = 343,
351+
CommaExpression = 344,
352+
ConditionalExpression = 345,
353+
AssignmentExpression = 346,
354+
PointerExpression = 347,
355+
UnaryExpression2 = 348,
356+
BinaryExpression2 = 349,
357+
UpdateExpression = 350,
358+
CastExpression = 351,
359+
TypeDescriptor = 352,
360+
SizeofExpression = 353,
361+
SubscriptExpression = 354,
362+
CallExpression2 = 355,
363+
ArgumentList2 = 356,
364+
FieldExpression = 357,
365+
CompoundLiteralExpression = 358,
366+
ParenthesizedExpression2 = 359,
367+
InitializerList = 360,
368+
InitializerPair = 361,
369+
SubscriptDesignator = 362,
370+
FieldDesignator = 363,
371+
CharLiteral = 364,
372+
ConcatenatedString = 365,
373+
StringLiteral = 366,
374+
EmptyDeclaration = 367,
375+
Decltype = 368,
376+
ClassSpecifier = 369,
377+
ClassName = 370,
378+
VirtualSpecifier = 371,
379+
VirtualFunctionSpecifier = 372,
380+
ExplicitFunctionSpecifier = 373,
381+
BaseClassClause = 374,
382+
EnumBaseClause = 375,
383+
DependentType = 376,
384+
TemplateDeclaration = 377,
385+
TemplateInstantiation = 378,
386+
TemplateParameterList = 379,
387+
TypeParameterDeclaration = 380,
388+
VariadicTypeParameterDeclaration = 381,
389+
OptionalTypeParameterDeclaration = 382,
390+
TemplateTemplateParameterDeclaration = 383,
391+
OptionalParameterDeclaration = 384,
392+
VariadicParameterDeclaration = 385,
393+
VariadicDeclarator = 386,
394+
ReferenceDeclarator = 387,
395+
OperatorCast = 388,
396+
FieldInitializerList = 389,
397+
FieldInitializer = 390,
398+
FunctionDefinition2 = 391,
399+
ConstructorSpecifiers = 392,
400+
FunctionDefinition3 = 393,
401+
Declaration2 = 394,
402+
FunctionDefinition4 = 395,
403+
Declaration3 = 396,
404+
DefaultMethodClause = 397,
405+
DeleteMethodClause = 398,
406+
FriendDeclaration = 399,
407+
AccessSpecifier = 400,
408+
ReferenceDeclarator2 = 401,
409+
ReferenceDeclarator3 = 402,
410+
AbstractReferenceDeclarator = 403,
411+
StructuredBindingDeclarator = 404,
412+
RefQualifier = 405,
413+
TrailingReturnType = 406,
414+
Noexcept = 407,
415+
ThrowSpecifier = 408,
416+
TemplateType = 409,
417+
TemplateMethod = 410,
418+
TemplateFunction = 411,
419+
TemplateArgumentList = 412,
420+
NamespaceDefinition = 413,
421+
NamespaceDefinitionName = 414,
422+
UsingDeclaration = 415,
423+
AliasDeclaration = 416,
424+
StaticAssertDeclaration = 417,
425+
ConditionClause = 418,
426+
Declaration4 = 419,
427+
ForRangeLoop = 420,
428+
CoReturnStatement = 421,
429+
CoYieldStatement = 422,
430+
ThrowStatement = 423,
431+
TryStatement = 424,
432+
CatchClause = 425,
433+
CoAwaitExpression = 426,
434+
NewExpression = 427,
435+
NewDeclarator = 428,
436+
DeleteExpression = 429,
437+
LambdaExpression = 430,
438+
LambdaCaptureSpecifier = 431,
439+
LambdaDefaultCapture = 432,
440+
ParameterPackExpansion = 433,
441+
ParameterPackExpansion2 = 434,
442+
DestructorName = 435,
443+
DependentName = 436,
444+
DependentName2 = 437,
445+
DependentName3 = 438,
446+
ScopeResolution = 439,
447+
QualifiedIdentifier = 440,
448+
QualifiedIdentifier2 = 441,
449+
QualifiedIdentifier3 = 442,
450+
QualifiedIdentifier4 = 443,
451+
OperatorName = 444,
452+
UserDefinedLiteral = 445,
453+
AloneMacroCall = 446,
454+
CallMacroWithDeclFirstArg = 447,
455+
MacroStatement = 448,
456+
MacroAnnotation = 449,
457+
TranslationUnitRepeat1 = 450,
458+
PreprocParamsRepeat1 = 451,
459+
PreprocIfInFieldDeclarationListRepeat1 = 452,
460+
PreprocArgumentListRepeat1 = 453,
461+
DeclarationRepeat1 = 454,
462+
TypeDefinitionRepeat1 = 455,
463+
TypeDefinitionRepeat2 = 456,
464+
DeclarationSpecifiersRepeat1 = 457,
465+
AttributeDeclarationRepeat1 = 458,
466+
AttributedDeclaratorRepeat1 = 459,
467+
PointerDeclaratorRepeat1 = 460,
468+
FunctionDeclaratorRepeat1 = 461,
469+
FunctionDeclaratorRepeat2 = 462,
470+
AbstractFunctionDeclaratorRepeat1 = 463,
471+
SizedTypeSpecifierRepeat1 = 464,
472+
EnumeratorListRepeat1 = 465,
473+
FieldDeclarationRepeat1 = 466,
474+
ParameterListRepeat1 = 467,
475+
CaseStatementRepeat1 = 468,
476+
ArgumentListRepeat1 = 469,
477+
InitializerListRepeat1 = 470,
478+
InitializerPairRepeat1 = 471,
479+
ConcatenatedStringRepeat1 = 472,
480+
StringLiteralRepeat1 = 473,
481+
ClassSpecifierRepeat1 = 474,
482+
BaseClassClauseRepeat1 = 475,
483+
TemplateParameterListRepeat1 = 476,
484+
FieldInitializerListRepeat1 = 477,
485+
OperatorCastDefinitionRepeat1 = 478,
486+
StructuredBindingDeclaratorRepeat1 = 479,
487+
ThrowSpecifierRepeat1 = 480,
488+
TemplateArgumentListRepeat1 = 481,
489+
TryStatementRepeat1 = 482,
490+
LambdaCaptureSpecifierRepeat1 = 483,
491+
AloneMacroCallRepeat1 = 484,
492+
FieldIdentifier = 485,
493+
NamespaceIdentifier = 486,
494+
StatementIdentifier = 487,
495+
TypeIdentifier = 488,
496+
Error = 489,
498497
}
499498

500499
impl From<Cpp> for &'static str {
@@ -840,7 +839,6 @@ impl From<Cpp> for &'static str {
840839
Cpp::ParameterList => "parameter_list",
841840
Cpp::ParameterDeclaration => "parameter_declaration",
842841
Cpp::AttributedStatement => "attributed_statement",
843-
Cpp::AttributedStatement2 => "attributed_statement",
844842
Cpp::LabeledStatement => "labeled_statement",
845843
Cpp::ExpressionStatement => "expression_statement",
846844
Cpp::IfStatement => "if_statement",

tests/repositories/rca-output

tree-sitter-mozcpp/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "tree-sitter-mozcpp"
33
description = "Mozcpp grammar for the tree-sitter parsing library"
4-
version = "0.20.1"
4+
version = "0.20.2"
55
authors = ["Calixte Denizet <[email protected]>"]
66
license = "MIT"
77
readme = "bindings/rust/README.md"
@@ -21,7 +21,7 @@ include = [
2121
path = "bindings/rust/lib.rs"
2222

2323
[dependencies]
24-
tree-sitter = ">= 0.19, < 0.21"
24+
tree-sitter = "=0.20.9"
2525

2626
[build-dependencies]
2727
cc = "^1.0"

tree-sitter-mozcpp/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tree-sitter-mozcpp",
3-
"version": "0.19.0",
3+
"version": "0.20.0",
44
"description": "Mozcpp grammar for node-tree-sitter",
55
"main": "bindings/node",
66
"keywords": [
@@ -13,7 +13,7 @@
1313
"nan": "^2.14.2"
1414
},
1515
"devDependencies": {
16-
"tree-sitter-cli": "^0.19.3"
16+
"tree-sitter-cli": "^0.20.7"
1717
},
1818
"scripts": {
1919
"build": "tree-sitter generate && node-gyp build",

0 commit comments

Comments
 (0)