mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 15:15:24 +00:00
Add raw idents to lexer and parser
This commit is contained in:
parent
0b942cbcb0
commit
1cd6d6539a
26 changed files with 124 additions and 40 deletions
|
@ -140,7 +140,7 @@ fn opt_fn_ret_type(p: &mut Parser) -> bool {
|
|||
}
|
||||
|
||||
fn name_r(p: &mut Parser, recovery: TokenSet) {
|
||||
if p.at(IDENT) {
|
||||
if p.current().is_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.at(IDENT) {
|
||||
if p.current().is_ident() {
|
||||
let m = p.start();
|
||||
p.bump();
|
||||
m.complete(p, NAME_REF);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue