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.ron48
1 files changed, 24 insertions, 24 deletions
diff --git a/crates/ra_syntax/src/grammar.ron b/crates/ra_syntax/src/grammar.ron
index 26efeeba9..4659192cd 100644
--- a/crates/ra_syntax/src/grammar.ron
+++ b/crates/ra_syntax/src/grammar.ron
@@ -161,9 +161,9 @@ Grammar(
161 "BIND_PAT", 161 "BIND_PAT",
162 "PLACEHOLDER_PAT", 162 "PLACEHOLDER_PAT",
163 "PATH_PAT", 163 "PATH_PAT",
164 "STRUCT_PAT", 164 "RECORD_PAT",
165 "FIELD_PAT_LIST", 165 "RECORD_FIELD_PAT_LIST",
166 "FIELD_PAT", 166 "RECORD_FIELD_PAT",
167 "TUPLE_STRUCT_PAT", 167 "TUPLE_STRUCT_PAT",
168 "TUPLE_PAT", 168 "TUPLE_PAT",
169 "SLICE_PAT", 169 "SLICE_PAT",
@@ -190,9 +190,9 @@ Grammar(
190 "MATCH_ARM_LIST", 190 "MATCH_ARM_LIST",
191 "MATCH_ARM", 191 "MATCH_ARM",
192 "MATCH_GUARD", 192 "MATCH_GUARD",
193 "STRUCT_LIT", 193 "RECORD_LIT",
194 "NAMED_FIELD_LIST", 194 "RECORD_FIELD_LIST",
195 "NAMED_FIELD", 195 "RECORD_FIELD",
196 "TRY_BLOCK_EXPR", 196 "TRY_BLOCK_EXPR",
197 "BOX_EXPR", 197 "BOX_EXPR",
198 198
@@ -216,10 +216,10 @@ Grammar(
216 "EXTERN_BLOCK", 216 "EXTERN_BLOCK",
217 "EXTERN_ITEM_LIST", 217 "EXTERN_ITEM_LIST",
218 "ENUM_VARIANT", 218 "ENUM_VARIANT",
219 "NAMED_FIELD_DEF_LIST", 219 "RECORD_FIELD_DEF_LIST",
220 "NAMED_FIELD_DEF", 220 "RECORD_FIELD_DEF",
221 "POS_FIELD_DEF_LIST", 221 "TUPLE_FIELD_DEF_LIST",
222 "POS_FIELD_DEF", 222 "TUPLE_FIELD_DEF",
223 "ENUM_VARIANT_LIST", 223 "ENUM_VARIANT_LIST",
224 "ITEM_LIST", 224 "ITEM_LIST",
225 "ATTR", 225 "ATTR",
@@ -286,8 +286,8 @@ Grammar(
286 "DocCommentsOwner" 286 "DocCommentsOwner"
287 ] 287 ]
288 ), 288 ),
289 "NamedFieldDefList": (collections: [("fields", "NamedFieldDef")]), 289 "RecordFieldDefList": (collections: [("fields", "RecordFieldDef")]),
290 "NamedFieldDef": ( 290 "RecordFieldDef": (
291 traits: [ 291 traits: [
292 "VisibilityOwner", 292 "VisibilityOwner",
293 "NameOwner", 293 "NameOwner",
@@ -296,8 +296,8 @@ Grammar(
296 "TypeAscriptionOwner" 296 "TypeAscriptionOwner"
297 ] 297 ]
298 ), 298 ),
299 "PosFieldDefList": (collections: [("fields", "PosFieldDef")]), 299 "TupleFieldDefList": (collections: [("fields", "TupleFieldDef")]),
300 "PosFieldDef": ( traits: ["VisibilityOwner", "AttrsOwner"], options: ["TypeRef"]), 300 "TupleFieldDef": ( traits: ["VisibilityOwner", "AttrsOwner"], options: ["TypeRef"]),
301 "EnumDef": ( traits: [ 301 "EnumDef": ( traits: [
302 "VisibilityOwner", 302 "VisibilityOwner",
303 "NameOwner", 303 "NameOwner",
@@ -461,12 +461,12 @@ Grammar(
461 traits: [ "AttrsOwner" ] 461 traits: [ "AttrsOwner" ]
462 ), 462 ),
463 "MatchGuard": (options: ["Expr"]), 463 "MatchGuard": (options: ["Expr"]),
464 "StructLit": (options: ["Path", "NamedFieldList"]), 464 "RecordLit": (options: ["Path", "RecordFieldList"]),
465 "NamedFieldList": ( 465 "RecordFieldList": (
466 collections: [ ("fields", "NamedField") ], 466 collections: [ ("fields", "RecordField") ],
467 options: [["spread", "Expr"]] 467 options: [["spread", "Expr"]]
468 ), 468 ),
469 "NamedField": (options: ["NameRef", "Expr"]), 469 "RecordField": (options: ["NameRef", "Expr"]),
470 "CallExpr": ( 470 "CallExpr": (
471 traits: ["ArgListOwner"], 471 traits: ["ArgListOwner"],
472 options: [ "Expr" ], 472 options: [ "Expr" ],
@@ -504,7 +504,7 @@ Grammar(
504 "BlockExpr", 504 "BlockExpr",
505 "ReturnExpr", 505 "ReturnExpr",
506 "MatchExpr", 506 "MatchExpr",
507 "StructLit", 507 "RecordLit",
508 "CallExpr", 508 "CallExpr",
509 "IndexExpr", 509 "IndexExpr",
510 "MethodCallExpr", 510 "MethodCallExpr",
@@ -529,14 +529,14 @@ Grammar(
529 ), 529 ),
530 "PlaceholderPat": (), 530 "PlaceholderPat": (),
531 "PathPat": ( options: [ "Path" ] ), 531 "PathPat": ( options: [ "Path" ] ),
532 "StructPat": ( options: ["FieldPatList", "Path"] ), 532 "RecordPat": ( options: ["RecordFieldPatList", "Path"] ),
533 "FieldPatList": ( 533 "RecordFieldPatList": (
534 collections: [ 534 collections: [
535 ("field_pats", "FieldPat"), 535 ("record_field_pats", "RecordFieldPat"),
536 ("bind_pats", "BindPat"), 536 ("bind_pats", "BindPat"),
537 ] 537 ]
538 ), 538 ),
539 "FieldPat": ( 539 "RecordFieldPat": (
540 traits: ["NameOwner"], 540 traits: ["NameOwner"],
541 options: ["Pat"] 541 options: ["Pat"]
542 ), 542 ),
@@ -555,7 +555,7 @@ Grammar(
555 "BindPat", 555 "BindPat",
556 "PlaceholderPat", 556 "PlaceholderPat",
557 "PathPat", 557 "PathPat",
558 "StructPat", 558 "RecordPat",
559 "TupleStructPat", 559 "TupleStructPat",
560 "TuplePat", 560 "TuplePat",
561 "SlicePat", 561 "SlicePat",