diff options
Diffstat (limited to 'crates/ra_parser/src/grammar/expressions.rs')
-rw-r--r-- | crates/ra_parser/src/grammar/expressions.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_parser/src/grammar/expressions.rs b/crates/ra_parser/src/grammar/expressions.rs index ba8386d11..855418f1c 100644 --- a/crates/ra_parser/src/grammar/expressions.rs +++ b/crates/ra_parser/src/grammar/expressions.rs | |||
@@ -197,7 +197,7 @@ pub(crate) fn expr_block_contents(p: &mut Parser) { | |||
197 | // struct S {}; | 197 | // struct S {}; |
198 | // } | 198 | // } |
199 | 199 | ||
200 | if p.current() == T![;] { | 200 | if p.at(T![;]) { |
201 | p.bump(); | 201 | p.bump(); |
202 | continue; | 202 | continue; |
203 | } | 203 | } |
@@ -302,7 +302,7 @@ fn expr_bp( | |||
302 | newly_dollar_open = false; | 302 | newly_dollar_open = false; |
303 | } | 303 | } |
304 | 304 | ||
305 | let is_range = p.current() == T![..] || p.current() == T![..=]; | 305 | let is_range = p.at(T![..]) || p.at(T![..=]); |
306 | let (op_bp, op) = current_op(p); | 306 | let (op_bp, op) = current_op(p); |
307 | if op_bp < bp { | 307 | if op_bp < bp { |
308 | break; | 308 | break; |