aboutsummaryrefslogtreecommitdiff
path: root/crates/libsyntax2/src/grammar.ron
diff options
context:
space:
mode:
Diffstat (limited to 'crates/libsyntax2/src/grammar.ron')
-rw-r--r--crates/libsyntax2/src/grammar.ron26
1 files changed, 23 insertions, 3 deletions
diff --git a/crates/libsyntax2/src/grammar.ron b/crates/libsyntax2/src/grammar.ron
index 0bb40f5ab..8267c2854 100644
--- a/crates/libsyntax2/src/grammar.ron
+++ b/crates/libsyntax2/src/grammar.ron
@@ -337,7 +337,7 @@ Grammar(
337 ), 337 ),
338 "ModuleItem": ( 338 "ModuleItem": (
339 enum: ["StructDef", "EnumDef", "FnDef", "TraitDef", "ImplItem", 339 enum: ["StructDef", "EnumDef", "FnDef", "TraitDef", "ImplItem",
340 "UseItem", "ExternCrateItem", "ConstDef", "StaticDef" ] 340 "UseItem", "ExternCrateItem", "ConstDef", "StaticDef", "Module" ]
341 ), 341 ),
342 342
343 "TupleExpr": (), 343 "TupleExpr": (),
@@ -507,13 +507,33 @@ Grammar(
507 "Param": ( 507 "Param": (
508 options: [["pat", "Pat"]], 508 options: [["pat", "Pat"]],
509 ), 509 ),
510 "UseItem": (), 510 "UseItem": (
511 options: [["use_tree", "UseTree"]]
512 ),
513 "UseTree": (
514 options: [
515 ["path", "Path"],
516 ["use_tree_list", "UseTreeList"],
517 ]
518 ),
519 "UseTreeList": (
520 collections: [["use_trees", "UseTree"]]
521 ),
511 "ExternCrateItem": (), 522 "ExternCrateItem": (),
512 "ArgList": ( 523 "ArgList": (
513 collections: [ 524 collections: [
514 ["args", "Expr"] 525 ["args", "Expr"]
515 ] 526 ]
516 ), 527 ),
517 "Path": (), 528 "Path": (
529 options: [
530 ["segment", "PathSegment"]
531 ]
532 ),
533 "PathSegment": (
534 options: [
535 ["name_ref", "NameRef"]
536 ]
537 ),
518 }, 538 },
519) 539)