aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/src/grammar.ron
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_syntax/src/grammar.ron')
-rw-r--r--crates/ra_syntax/src/grammar.ron76
1 files changed, 38 insertions, 38 deletions
diff --git a/crates/ra_syntax/src/grammar.ron b/crates/ra_syntax/src/grammar.ron
index a21c3917d..0a35e25d5 100644
--- a/crates/ra_syntax/src/grammar.ron
+++ b/crates/ra_syntax/src/grammar.ron
@@ -243,6 +243,8 @@ Grammar(
243 "PARAM", 243 "PARAM",
244 "SELF_PARAM", 244 "SELF_PARAM",
245 "ARG_LIST", 245 "ARG_LIST",
246 "TYPE_BOUND",
247 "TYPE_BOUND_LIST",
246 ], 248 ],
247 ast: { 249 ast: {
248 "SourceFile": ( 250 "SourceFile": (
@@ -293,7 +295,7 @@ Grammar(
293 "EnumVariantList": ( collections: [["variants", "EnumVariant"]] ), 295 "EnumVariantList": ( collections: [["variants", "EnumVariant"]] ),
294 "EnumVariant": ( traits: ["NameOwner", "DocCommentsOwner", "AttrsOwner"], options: ["Expr"] ), 296 "EnumVariant": ( traits: ["NameOwner", "DocCommentsOwner", "AttrsOwner"], options: ["Expr"] ),
295 "TraitDef": ( 297 "TraitDef": (
296 traits: ["VisibilityOwner", "NameOwner", "AttrsOwner", "DocCommentsOwner", "TypeParamsOwner"], 298 traits: ["VisibilityOwner", "NameOwner", "AttrsOwner", "DocCommentsOwner", "TypeParamsOwner", "TypeBoundsOwner"],
297 options: ["ItemList"] 299 options: ["ItemList"]
298 ), 300 ),
299 "Module": ( 301 "Module": (
@@ -332,7 +334,8 @@ Grammar(
332 "NameOwner", 334 "NameOwner",
333 "TypeParamsOwner", 335 "TypeParamsOwner",
334 "AttrsOwner", 336 "AttrsOwner",
335 "DocCommentsOwner" 337 "DocCommentsOwner",
338 "TypeBoundsOwner",
336 ], 339 ],
337 options: ["TypeRef"] 340 options: ["TypeRef"]
338 ), 341 ),
@@ -349,8 +352,12 @@ Grammar(
349 "PlaceholderType": (), 352 "PlaceholderType": (),
350 "FnPointerType": (options: ["ParamList", "RetType"]), 353 "FnPointerType": (options: ["ParamList", "RetType"]),
351 "ForType": (options: ["TypeRef"]), 354 "ForType": (options: ["TypeRef"]),
352 "ImplTraitType": (), 355 "ImplTraitType": (
353 "DynTraitType": (), 356 traits: ["TypeBoundsOwner"],
357 ),
358 "DynTraitType": (
359 traits: ["TypeBoundsOwner"],
360 ),
354 361
355 "TypeRef": ( enum: [ 362 "TypeRef": ( enum: [
356 "ParenType", 363 "ParenType",
@@ -458,31 +465,7 @@ Grammar(
458 "RangeExpr": (), 465 "RangeExpr": (),
459 "BinExpr": (), 466 "BinExpr": (),
460 467
461 "IntNumber": ( traits: ["AstToken"] ), 468 "Literal": (),
462 "FloatNumber": ( traits: ["AstToken"] ),
463 "String": ( traits: ["AstToken"] ),
464 "RawString": ( traits: ["AstToken"] ),
465 "Byte": ( traits: ["AstToken"] ),
466 "RawByteString": ( traits: ["AstToken"] ),
467 "ByteString": ( traits: ["AstToken"] ),
468 "Char": ( traits: ["AstToken"] ),
469 "TrueKw": ( traits: ["AstToken"] ),
470 "FalseKw": ( traits: ["AstToken"] ),
471 "LiteralExpr": (
472 enum: [
473 "String",
474 "ByteString",
475 "RawString",
476 "RawByteString",
477 "Char",
478 "Byte",
479 "IntNumber",
480 "FloatNumber",
481 "TrueKw",
482 "FalseKw",
483 ]
484 ),
485 "Literal": (options: ["LiteralExpr"]),
486 469
487 "Expr": ( 470 "Expr": (
488 enum: [ 471 enum: [
@@ -513,6 +496,7 @@ Grammar(
513 "RangeExpr", 496 "RangeExpr",
514 "BinExpr", 497 "BinExpr",
515 "Literal", 498 "Literal",
499 "MacroCall",
516 ], 500 ],
517 ), 501 ),
518 502
@@ -573,13 +557,33 @@ Grammar(
573 ["lifetime_params", "LifetimeParam" ], 557 ["lifetime_params", "LifetimeParam" ],
574 ] 558 ]
575 ), 559 ),
576 "TypeParam": ( traits: ["NameOwner", "AttrsOwner"] ), 560 "TypeParam": ( traits: ["NameOwner", "AttrsOwner", "TypeBoundsOwner"] ),
577 "LifetimeParam": ( 561 "LifetimeParam": (
578 options: [ "Lifetime"],
579 traits: ["AttrsOwner"], 562 traits: ["AttrsOwner"],
580 ), 563 ),
581 "Lifetime": ( traits: ["AstToken"] ), 564 "TypeBound": (
582 "WhereClause": (), 565 options: [
566 "TypeRef",
567 ]
568 ),
569 "TypeBoundList": (
570 collections: [
571 ["bounds", "TypeBound"],
572 ]
573 ),
574 "WherePred": (
575 options: [
576 "TypeRef",
577 ],
578 traits: [
579 "TypeBoundsOwner",
580 ],
581 ),
582 "WhereClause": (
583 collections: [
584 ["predicates", "WherePred"],
585 ],
586 ),
583 "ExprStmt": ( 587 "ExprStmt": (
584 options: [ ["expr", "Expr"] ] 588 options: [ ["expr", "Expr"] ]
585 ), 589 ),
@@ -614,12 +618,10 @@ Grammar(
614 ] 618 ]
615 ), 619 ),
616 "SelfParam": ( 620 "SelfParam": (
617 options: ["SelfKw"],
618 traits: [ 621 traits: [
619 "TypeAscriptionOwner", 622 "TypeAscriptionOwner",
620 ] 623 ]
621 ), 624 ),
622 "SelfKw": (),
623 "Param": ( 625 "Param": (
624 options: [ "Pat" ], 626 options: [ "Pat" ],
625 traits: [ 627 traits: [
@@ -663,8 +665,6 @@ Grammar(
663 ]), 665 ]),
664 "TypeArg": (options: ["TypeRef"]), 666 "TypeArg": (options: ["TypeRef"]),
665 "AssocTypeArg": (options: ["NameRef", "TypeRef"]), 667 "AssocTypeArg": (options: ["NameRef", "TypeRef"]),
666 "LifetimeArg": (options: ["Lifetime"]), 668 "LifetimeArg": (),
667 "Comment": ( traits: ["AstToken"] ),
668 "Whitespace": ( traits: ["AstToken"] ),
669 }, 669 },
670) 670)