From 199b3a1604095beee9eaeec541c8f158e85493ea Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sat, 10 Feb 2018 14:23:18 +0300 Subject: G: use name in mods --- src/parser/grammar/items/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/parser') diff --git a/src/parser/grammar/items/mod.rs b/src/parser/grammar/items/mod.rs index 2d9580991..8bb821fb6 100644 --- a/src/parser/grammar/items/mod.rs +++ b/src/parser/grammar/items/mod.rs @@ -255,7 +255,8 @@ fn mod_item(p: &mut Parser) { assert!(p.at(MOD_KW)); p.bump(); - if p.expect(IDENT) && !p.eat(SEMI) { + name(p); + if !p.eat(SEMI) { if p.expect(L_CURLY) { mod_contents(p, true); p.expect(R_CURLY); -- cgit v1.2.3