aboutsummaryrefslogtreecommitdiff
path: root/crates/libsyntax2/src/grammar.ron
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-08-28 09:12:42 +0100
committerAleksey Kladov <[email protected]>2018-08-28 09:12:42 +0100
commit2fa90e736b026ee979d9eb59178dc1f792228250 (patch)
treeadba3a569241a2030bf66e4e0b24ac5ffeaccbc3 /crates/libsyntax2/src/grammar.ron
parent13110f48e948d7554500aefc336e72f96041386b (diff)
better recovery for exprs
Diffstat (limited to 'crates/libsyntax2/src/grammar.ron')
-rw-r--r--crates/libsyntax2/src/grammar.ron10
1 files changed, 8 insertions, 2 deletions
diff --git a/crates/libsyntax2/src/grammar.ron b/crates/libsyntax2/src/grammar.ron
index a98e9e2fd..7217a4633 100644
--- a/crates/libsyntax2/src/grammar.ron
+++ b/crates/libsyntax2/src/grammar.ron
@@ -273,7 +273,7 @@ Grammar(
273 "Module": ( 273 "Module": (
274 traits: ["NameOwner", "AttrsOwner"], 274 traits: ["NameOwner", "AttrsOwner"],
275 collections: [ 275 collections: [
276 ["modules", "Module"] 276 ["items", "ModuleItem"]
277 ] 277 ]
278 ), 278 ),
279 "ConstDef": ( traits: [ 279 "ConstDef": ( traits: [
@@ -331,6 +331,10 @@ Grammar(
331 "AttrsOwner" 331 "AttrsOwner"
332 ], 332 ],
333 ), 333 ),
334 "ModuleItem": (
335 enum: ["StructDef", "EnumDef", "FnDef", "TraitDef", "ImplItem",
336 "UseItem", "ExternCrateItem" ]
337 ),
334 338
335 "TupleExpr": (), 339 "TupleExpr": (),
336 "ArrayExpr": (), 340 "ArrayExpr": (),
@@ -479,6 +483,8 @@ Grammar(
479 ), 483 ),
480 "Param": ( 484 "Param": (
481 options: [["pat", "Pat"]], 485 options: [["pat", "Pat"]],
482 ) 486 ),
487 "UseItem": (),
488 "ExternCrateItem": (),
483 }, 489 },
484) 490)