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();
|
||||
p.bump();
|
||||
m.complete(p, NAME_REF);
|
||||
} else if p.at(SELF_KW) {
|
||||
let m = p.start();
|
||||
p.bump();
|
||||
m.complete(p, SELF_KW);
|
||||
} else {
|
||||
p.err_and_bump("expected identifier");
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue