From f0fcd02013c7c22c040092d556323faa90409d2b Mon Sep 17 00:00:00 2001 From: memoryruins Date: Thu, 28 Mar 2019 12:15:18 -0400 Subject: Add extern_crate_self to ra_parser. --- crates/ra_parser/src/grammar.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'crates/ra_parser/src') diff --git a/crates/ra_parser/src/grammar.rs b/crates/ra_parser/src/grammar.rs index e428faffb..b2ffeff8c 100644 --- a/crates/ra_parser/src/grammar.rs +++ b/crates/ra_parser/src/grammar.rs @@ -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"); } -- cgit v1.2.3