Fix nameref parsing

This commit is contained in:
Aleksey Kladov 2020-07-28 20:59:48 +02:00
parent eb99c35b3d
commit b10e437039
3 changed files with 8 additions and 7 deletions

View file

@ -270,10 +270,6 @@ fn name_ref(p: &mut Parser) {
let m = p.start();
p.bump(IDENT);
m.complete(p, NAME_REF);
} else if p.at(T![self]) {
let m = p.start();
p.bump(T![self]);
m.complete(p, T![self]);
} else {
p.err_and_bump("expected identifier");
}