aboutsummaryrefslogtreecommitdiff
path: root/src/parser
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-02-10 11:23:18 +0000
committerAleksey Kladov <[email protected]>2018-02-10 11:23:18 +0000
commit199b3a1604095beee9eaeec541c8f158e85493ea (patch)
tree6de85e5e662bc0c6eca78715496a02867da1eff9 /src/parser
parentd68a187eb5adf489b5e1eef6aa23768b819d0e65 (diff)
G: use name in mods
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);