Make name_ref to accept numeric names optionally

This commit is contained in:
Evgenii P
2019-08-09 16:08:36 +07:00
parent 957b5ed23a
commit fa24e20867
5 changed files with 9 additions and 9 deletions

View File

@@ -279,7 +279,7 @@ fn extern_crate_item(p: &mut Parser, m: Marker) {
p.bump();
assert!(p.at(T![crate]));
p.bump();
name_ref(p);
name_ref(p, false);
opt_alias(p);
p.expect(T![;]);
m.complete(p, EXTERN_CRATE_ITEM);