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.ron17
1 files changed, 11 insertions, 6 deletions
diff --git a/crates/ra_syntax/src/grammar.ron b/crates/ra_syntax/src/grammar.ron
index a3bfc74a7..b7a2d1c01 100644
--- a/crates/ra_syntax/src/grammar.ron
+++ b/crates/ra_syntax/src/grammar.ron
@@ -271,7 +271,15 @@ Grammar(
271 ] 271 ]
272 ), 272 ),
273 "NamedFieldDefList": (collections: [["fields", "NamedFieldDef"]]), 273 "NamedFieldDefList": (collections: [["fields", "NamedFieldDef"]]),
274 "NamedFieldDef": ( traits: ["VisibilityOwner", "NameOwner", "AttrsOwner", "DocCommentsOwner", "TypeAscriptionOwner"], options: ["TypeRef"] ), 274 "NamedFieldDef": (
275 traits: [
276 "VisibilityOwner",
277 "NameOwner",
278 "AttrsOwner",
279 "DocCommentsOwner",
280 "TypeAscriptionOwner"
281 ]
282 ),
275 "PosFieldDefList": (collections: [["fields", "PosFieldDef"]]), 283 "PosFieldDefList": (collections: [["fields", "PosFieldDef"]]),
276 "PosFieldDef": ( traits: ["VisibilityOwner", "AttrsOwner"], options: ["TypeRef"]), 284 "PosFieldDef": ( traits: ["VisibilityOwner", "AttrsOwner"], options: ["TypeRef"]),
277 "EnumDef": ( traits: [ 285 "EnumDef": ( traits: [
@@ -301,7 +309,6 @@ Grammar(
301 "DocCommentsOwner", 309 "DocCommentsOwner",
302 "TypeAscriptionOwner", 310 "TypeAscriptionOwner",
303 ], 311 ],
304 options: ["TypeRef"]
305 ), 312 ),
306 "StaticDef": ( 313 "StaticDef": (
307 traits: [ 314 traits: [
@@ -312,7 +319,6 @@ Grammar(
312 "DocCommentsOwner", 319 "DocCommentsOwner",
313 "TypeAscriptionOwner", 320 "TypeAscriptionOwner",
314 ], 321 ],
315 options: ["TypeRef"]
316 ), 322 ),
317 "TypeAliasDef": ( 323 "TypeAliasDef": (
318 traits: [ 324 traits: [
@@ -574,7 +580,6 @@ Grammar(
574 "LetStmt": ( 580 "LetStmt": (
575 options: [ 581 options: [
576 ["pat", "Pat"], 582 ["pat", "Pat"],
577 ["type_ref", "TypeRef"],
578 ["initializer", "Expr"], 583 ["initializer", "Expr"],
579 ], 584 ],
580 traits: [ 585 traits: [
@@ -603,14 +608,14 @@ Grammar(
603 ] 608 ]
604 ), 609 ),
605 "SelfParam": ( 610 "SelfParam": (
606 options: ["TypeRef", "SelfKw"], 611 options: ["SelfKw"],
607 traits: [ 612 traits: [
608 "TypeAscriptionOwner", 613 "TypeAscriptionOwner",
609 ] 614 ]
610 ), 615 ),
611 "SelfKw": (), 616 "SelfKw": (),
612 "Param": ( 617 "Param": (
613 options: [ "Pat", "TypeRef" ], 618 options: [ "Pat" ],
614 traits: [ 619 traits: [
615 "TypeAscriptionOwner", 620 "TypeAscriptionOwner",
616 ] 621 ]