diff options
author | Florian Diebold <[email protected]> | 2019-02-01 23:33:54 +0000 |
---|---|---|
committer | Florian Diebold <[email protected]> | 2019-02-04 20:49:34 +0000 |
commit | e163c908acff9260eff347541f0f3f57db551622 (patch) | |
tree | 1749bf4fa26b02d97d058c985083bd388ad71b91 /crates/ra_syntax/src/grammar | |
parent | 77a824c6a0db6ac2548841d290d5d61d1d23295c (diff) |
Add AST for extern crate
Also change it to parse the crate name as a NAME_REF, not a NAME.
Diffstat (limited to 'crates/ra_syntax/src/grammar')
-rw-r--r-- | crates/ra_syntax/src/grammar/items.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_syntax/src/grammar/items.rs b/crates/ra_syntax/src/grammar/items.rs index 18039cd3f..84c18a293 100644 --- a/crates/ra_syntax/src/grammar/items.rs +++ b/crates/ra_syntax/src/grammar/items.rs | |||
@@ -247,7 +247,7 @@ fn extern_crate_item(p: &mut Parser) { | |||
247 | p.bump(); | 247 | p.bump(); |
248 | assert!(p.at(CRATE_KW)); | 248 | assert!(p.at(CRATE_KW)); |
249 | p.bump(); | 249 | p.bump(); |
250 | name(p); | 250 | name_ref(p); |
251 | opt_alias(p); | 251 | opt_alias(p); |
252 | p.expect(SEMI); | 252 | p.expect(SEMI); |
253 | } | 253 | } |