Use IDENT for both raw and normal idents

This commit is contained in:
Josh Robson Chase 2019-01-23 13:14:34 -05:00
parent 1cd6d6539a
commit 3b70acad01
22 changed files with 41 additions and 80 deletions

View file

@ -140,7 +140,7 @@ fn opt_fn_ret_type(p: &mut Parser) -> bool {
}
fn name_r(p: &mut Parser, recovery: TokenSet) {
if p.current().is_ident() {
if p.at(IDENT) {
let m = p.start();
p.bump();
m.complete(p, NAME);
@ -154,7 +154,7 @@ fn name(p: &mut Parser) {
}
fn name_ref(p: &mut Parser) {
if p.current().is_ident() {
if p.at(IDENT) {
let m = p.start();
p.bump();
m.complete(p, NAME_REF);