aboutsummaryrefslogtreecommitdiff
path: root/src/parser
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser')
-rw-r--r--src/parser/grammar/items/mod.rs3
1 files changed, 2 insertions, 1 deletions
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) {
255 assert!(p.at(MOD_KW)); 255 assert!(p.at(MOD_KW));
256 p.bump(); 256 p.bump();
257 257
258 if p.expect(IDENT) && !p.eat(SEMI) { 258 name(p);
259 if !p.eat(SEMI) {
259 if p.expect(L_CURLY) { 260 if p.expect(L_CURLY) {
260 mod_contents(p, true); 261 mod_contents(p, true);
261 p.expect(R_CURLY); 262 p.expect(R_CURLY);