mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
Add extern_crate_self to ra_parser.
This commit is contained in:
parent
de56dba452
commit
f0fcd02013
1 changed files with 4 additions and 0 deletions
|
@ -184,6 +184,10 @@ fn name_ref(p: &mut Parser) {
|
||||||
let m = p.start();
|
let m = p.start();
|
||||||
p.bump();
|
p.bump();
|
||||||
m.complete(p, NAME_REF);
|
m.complete(p, NAME_REF);
|
||||||
|
} else if p.at(SELF_KW) {
|
||||||
|
let m = p.start();
|
||||||
|
p.bump();
|
||||||
|
m.complete(p, SELF_KW);
|
||||||
} else {
|
} else {
|
||||||
p.err_and_bump("expected identifier");
|
p.err_and_bump("expected identifier");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue