From 80ab3433d3376b7c44787d63af6e7b3217ae41d8 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Thu, 30 Aug 2018 20:37:33 +0300 Subject: complete imports --- crates/libsyntax2/src/grammar.ron | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) (limited to 'crates/libsyntax2/src/grammar.ron') 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( ), "ModuleItem": ( enum: ["StructDef", "EnumDef", "FnDef", "TraitDef", "ImplItem", - "UseItem", "ExternCrateItem", "ConstDef", "StaticDef" ] + "UseItem", "ExternCrateItem", "ConstDef", "StaticDef", "Module" ] ), "TupleExpr": (), @@ -507,13 +507,33 @@ Grammar( "Param": ( options: [["pat", "Pat"]], ), - "UseItem": (), + "UseItem": ( + options: [["use_tree", "UseTree"]] + ), + "UseTree": ( + options: [ + ["path", "Path"], + ["use_tree_list", "UseTreeList"], + ] + ), + "UseTreeList": ( + collections: [["use_trees", "UseTree"]] + ), "ExternCrateItem": (), "ArgList": ( collections: [ ["args", "Expr"] ] ), - "Path": (), + "Path": ( + options: [ + ["segment", "PathSegment"] + ] + ), + "PathSegment": ( + options: [ + ["name_ref", "NameRef"] + ] + ), }, ) -- cgit v1.2.3