diff options
author | memoryruins <[email protected]> | 2019-03-28 16:15:18 +0000 |
---|---|---|
committer | memoryruins <[email protected]> | 2019-03-28 16:15:18 +0000 |
commit | f0fcd02013c7c22c040092d556323faa90409d2b (patch) | |
tree | ff430bc5eb681b95508552cb916d6f741e31c651 /crates/ra_parser | |
parent | de56dba452006f6b1c7dc2f2264c77ec2bcf81f8 (diff) |
Add extern_crate_self to ra_parser.
Diffstat (limited to 'crates/ra_parser')
-rw-r--r-- | crates/ra_parser/src/grammar.rs | 4 |
1 files changed, 4 insertions, 0 deletions
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) { | |||
184 | let m = p.start(); | 184 | let m = p.start(); |
185 | p.bump(); | 185 | p.bump(); |
186 | m.complete(p, NAME_REF); | 186 | 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); | ||
187 | } else { | 191 | } else { |
188 | p.err_and_bump("expected identifier"); | 192 | p.err_and_bump("expected identifier"); |
189 | } | 193 | } |