From 127814d9a7f62c834c0893ff05e933aac4be89e9 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sat, 8 Sep 2018 01:35:20 +0300 Subject: nested mod completion --- crates/libsyntax2/src/grammar.ron | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'crates/libsyntax2/src/grammar.ron') diff --git a/crates/libsyntax2/src/grammar.ron b/crates/libsyntax2/src/grammar.ron index 6ed658daa..77ae4c7db 100644 --- a/crates/libsyntax2/src/grammar.ron +++ b/crates/libsyntax2/src/grammar.ron @@ -238,9 +238,8 @@ Grammar( ], ast: { "Root": ( - traits: [ "FnDefOwner" ], + traits: [ "ModuleItemOwner", "FnDefOwner" ], collections: [ - ["items", "ModuleItem"], ["modules", "Module"], ] ), @@ -271,12 +270,11 @@ Grammar( ] ), "TraitDef": ( traits: ["NameOwner", "AttrsOwner"] ), "Module": ( - traits: ["NameOwner", "AttrsOwner", "FnDefOwner" ], + traits: ["NameOwner", "AttrsOwner" ], options: [ "ItemList" ] ), "ItemList": ( - traits: [ "FnDefOwner" ], - collections: [ ["items", "ModuleItem"] ] + traits: [ "FnDefOwner", "ModuleItemOwner" ], ), "ConstDef": ( traits: [ "NameOwner", -- cgit v1.2.3