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.ron15
1 files changed, 10 insertions, 5 deletions
diff --git a/crates/ra_syntax/src/grammar.ron b/crates/ra_syntax/src/grammar.ron
index 660a2b207..18730a894 100644
--- a/crates/ra_syntax/src/grammar.ron
+++ b/crates/ra_syntax/src/grammar.ron
@@ -295,7 +295,7 @@ Grammar(
295 "EnumVariantList": ( collections: [["variants", "EnumVariant"]] ), 295 "EnumVariantList": ( collections: [["variants", "EnumVariant"]] ),
296 "EnumVariant": ( traits: ["NameOwner", "DocCommentsOwner", "AttrsOwner"], options: ["Expr"] ), 296 "EnumVariant": ( traits: ["NameOwner", "DocCommentsOwner", "AttrsOwner"], options: ["Expr"] ),
297 "TraitDef": ( 297 "TraitDef": (
298 traits: ["VisibilityOwner", "NameOwner", "AttrsOwner", "DocCommentsOwner", "TypeParamsOwner"], 298 traits: ["VisibilityOwner", "NameOwner", "AttrsOwner", "DocCommentsOwner", "TypeParamsOwner", "TypeBoundsOwner"],
299 options: ["ItemList"] 299 options: ["ItemList"]
300 ), 300 ),
301 "Module": ( 301 "Module": (
@@ -332,7 +332,8 @@ Grammar(
332 "NameOwner", 332 "NameOwner",
333 "TypeParamsOwner", 333 "TypeParamsOwner",
334 "AttrsOwner", 334 "AttrsOwner",
335 "DocCommentsOwner" 335 "DocCommentsOwner",
336 "TypeBoundsOwner",
336 ], 337 ],
337 options: ["TypeRef"] 338 options: ["TypeRef"]
338 ), 339 ),
@@ -349,8 +350,12 @@ Grammar(
349 "PlaceholderType": (), 350 "PlaceholderType": (),
350 "FnPointerType": (options: ["ParamList", "RetType"]), 351 "FnPointerType": (options: ["ParamList", "RetType"]),
351 "ForType": (options: ["TypeRef"]), 352 "ForType": (options: ["TypeRef"]),
352 "ImplTraitType": (), 353 "ImplTraitType": (
353 "DynTraitType": (), 354 traits: ["TypeBoundsOwner"],
355 ),
356 "DynTraitType": (
357 traits: ["TypeBoundsOwner"],
358 ),
354 359
355 "TypeRef": ( enum: [ 360 "TypeRef": ( enum: [
356 "ParenType", 361 "ParenType",
@@ -573,7 +578,7 @@ Grammar(
573 ["lifetime_params", "LifetimeParam" ], 578 ["lifetime_params", "LifetimeParam" ],
574 ] 579 ]
575 ), 580 ),
576 "TypeParam": ( traits: ["NameOwner", "AttrsOwner"] ), 581 "TypeParam": ( traits: ["NameOwner", "AttrsOwner", "TypeBoundsOwner"] ),
577 "LifetimeParam": ( 582 "LifetimeParam": (
578 options: [ "Lifetime"], 583 options: [ "Lifetime"],
579 traits: ["AttrsOwner"], 584 traits: ["AttrsOwner"],