diff options
Diffstat (limited to 'crates/ra_syntax/src/grammar/expressions.rs')
-rw-r--r-- | crates/ra_syntax/src/grammar/expressions.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_syntax/src/grammar/expressions.rs b/crates/ra_syntax/src/grammar/expressions.rs index a9449c7bf..bca32f707 100644 --- a/crates/ra_syntax/src/grammar/expressions.rs +++ b/crates/ra_syntax/src/grammar/expressions.rs | |||
@@ -143,7 +143,7 @@ fn current_op(p: &Parser) -> (u8, Op) { | |||
143 | 143 | ||
144 | let bp = match p.current() { | 144 | let bp = match p.current() { |
145 | EQ => 1, | 145 | EQ => 1, |
146 | DOTDOT => 2, | 146 | DOTDOT | DOTDOTEQ => 2, |
147 | EQEQ | NEQ | L_ANGLE | R_ANGLE => 5, | 147 | EQEQ | NEQ | L_ANGLE | R_ANGLE => 5, |
148 | PIPE => 6, | 148 | PIPE => 6, |
149 | CARET => 7, | 149 | CARET => 7, |
@@ -173,7 +173,7 @@ fn expr_bp(p: &mut Parser, r: Restrictions, bp: u8) -> BlockLike { | |||
173 | }; | 173 | }; |
174 | 174 | ||
175 | loop { | 175 | loop { |
176 | let is_range = p.current() == DOTDOT; | 176 | let is_range = p.current() == DOTDOT || p.current() == DOTDOTEQ; |
177 | let (op_bp, op) = current_op(p); | 177 | let (op_bp, op) = current_op(p); |
178 | if op_bp < bp { | 178 | if op_bp < bp { |
179 | break; | 179 | break; |