aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_parser/src/grammar.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_parser/src/grammar.rs')
-rw-r--r--crates/ra_parser/src/grammar.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/crates/ra_parser/src/grammar.rs b/crates/ra_parser/src/grammar.rs
index f94702e97..c9941fe93 100644
--- a/crates/ra_parser/src/grammar.rs
+++ b/crates/ra_parser/src/grammar.rs
@@ -129,7 +129,9 @@ fn opt_alias(p: &mut Parser) {
129 if p.at(AS_KW) { 129 if p.at(AS_KW) {
130 let m = p.start(); 130 let m = p.start();
131 p.bump(); 131 p.bump();
132 name(p); 132 if !p.eat(UNDERSCORE) {
133 name(p);
134 }
133 m.complete(p, ALIAS); 135 m.complete(p, ALIAS);
134 } 136 }
135} 137}