Skip to content

Commit f0fcd02

Browse files
committed
Add extern_crate_self to ra_parser.
1 parent de56dba commit f0fcd02

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

crates/ra_parser/src/grammar.rs

+4
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,10 @@ fn name_ref(p: &mut Parser) {
184184
let m = p.start();
185185
p.bump();
186186
m.complete(p, NAME_REF);
187+
} else if p.at(SELF_KW) {
188+
let m = p.start();
189+
p.bump();
190+
m.complete(p, SELF_KW);
187191
} else {
188192
p.err_and_bump("expected identifier");
189193
}

0 commit comments

Comments
 (0)