mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 15:15:24 +00:00
Use IDENT for both raw and normal idents
This commit is contained in:
parent
1cd6d6539a
commit
3b70acad01
22 changed files with 41 additions and 80 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue