aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/src/grammar.ron
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-11-25 14:30:50 +0000
committerAleksey Kladov <[email protected]>2019-11-25 14:50:49 +0000
commit5fd68b592938b6a4c074146c1b22ea0f6908fe26 (patch)
tree3403f802366b9ddf9c9e1c1ff59af3d81e476ad1 /crates/ra_syntax/src/grammar.ron
parente1c0bdaf75f8d88a5c28b3e44def17d91d4f46b3 (diff)
Fix hir for ast::UnionDef
Diffstat (limited to 'crates/ra_syntax/src/grammar.ron')
-rw-r--r--crates/ra_syntax/src/grammar.ron9
1 files changed, 5 insertions, 4 deletions
diff --git a/crates/ra_syntax/src/grammar.ron b/crates/ra_syntax/src/grammar.ron
index c16bed891..d1be40abe 100644
--- a/crates/ra_syntax/src/grammar.ron
+++ b/crates/ra_syntax/src/grammar.ron
@@ -293,7 +293,8 @@ Grammar(
293 "TypeParamsOwner", 293 "TypeParamsOwner",
294 "AttrsOwner", 294 "AttrsOwner",
295 "DocCommentsOwner" 295 "DocCommentsOwner"
296 ] 296 ],
297 options: ["RecordFieldDefList"],
297 ), 298 ),
298 "RecordFieldDefList": (collections: [("fields", "RecordFieldDef")]), 299 "RecordFieldDefList": (collections: [("fields", "RecordFieldDef")]),
299 "RecordFieldDef": ( 300 "RecordFieldDef": (
@@ -398,7 +399,7 @@ Grammar(
398 ]), 399 ]),
399 400
400 "NominalDef": ( 401 "NominalDef": (
401 enum: ["StructDef", "EnumDef"], 402 enum: ["StructDef", "EnumDef", "UnionDef"],
402 traits: [ 403 traits: [
403 "NameOwner", 404 "NameOwner",
404 "TypeParamsOwner", 405 "TypeParamsOwner",
@@ -406,9 +407,9 @@ Grammar(
406 ], 407 ],
407 ), 408 ),
408 "ModuleItem": ( 409 "ModuleItem": (
409 enum: ["StructDef", "EnumDef", "FnDef", "TraitDef", "TypeAliasDef", "ImplBlock", 410 enum: ["StructDef", "UnionDef", "EnumDef", "FnDef", "TraitDef", "TypeAliasDef", "ImplBlock",
410 "UseItem", "ExternCrateItem", "ConstDef", "StaticDef", "Module" ], 411 "UseItem", "ExternCrateItem", "ConstDef", "StaticDef", "Module" ],
411 traits: ["AttrsOwner"] 412 traits: ["AttrsOwner"],
412 ), 413 ),
413 "ImplItem": ( 414 "ImplItem": (
414 enum: ["FnDef", "TypeAliasDef", "ConstDef"], 415 enum: ["FnDef", "TypeAliasDef", "ConstDef"],