Parse tuple struct field initialization

This commit is contained in:
Evgenii P 2019-08-09 15:38:52 +07:00
parent 2fbec23d99
commit 957b5ed23a
4 changed files with 31 additions and 8 deletions

View file

@ -274,7 +274,7 @@ fn name(p: &mut Parser) {
}
fn name_ref(p: &mut Parser) {
if p.at(IDENT) {
if p.at(IDENT) || p.at(INT_NUMBER) {
let m = p.start();
p.bump();
m.complete(p, NAME_REF);