diff options
author | Aleksey Kladov <[email protected]> | 2018-02-10 11:00:23 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-02-10 11:00:23 +0000 |
commit | fc0a9e266b9d663b1eeca3963495c68ca3384be2 (patch) | |
tree | 324632ed4e19f1b2499d8d1be9b4bc631878a3ba /src/parser/grammar/items | |
parent | c3b009b6d24225ad2add62fce8206918fceba3eb (diff) |
G: introduce names
Diffstat (limited to 'src/parser/grammar/items')
-rw-r--r-- | src/parser/grammar/items/mod.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/parser/grammar/items/mod.rs b/src/parser/grammar/items/mod.rs index ffe86fa97..d671568b1 100644 --- a/src/parser/grammar/items/mod.rs +++ b/src/parser/grammar/items/mod.rs | |||
@@ -196,8 +196,9 @@ fn extern_crate_item(p: &mut Parser) { | |||
196 | p.bump(); | 196 | p.bump(); |
197 | assert!(p.at(CRATE_KW)); | 197 | assert!(p.at(CRATE_KW)); |
198 | p.bump(); | 198 | p.bump(); |
199 | 199 | name(p); | |
200 | p.expect(IDENT) && alias(p) && p.expect(SEMI); | 200 | alias(p); |
201 | p.expect(SEMI); | ||
201 | } | 202 | } |
202 | 203 | ||
203 | fn extern_block(p: &mut Parser) { | 204 | fn extern_block(p: &mut Parser) { |