diff options
Diffstat (limited to 'crates/ra_parser/src/grammar/expressions')
-rw-r--r-- | crates/ra_parser/src/grammar/expressions/atom.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_parser/src/grammar/expressions/atom.rs b/crates/ra_parser/src/grammar/expressions/atom.rs index b77b683b5..2fc6ce1e1 100644 --- a/crates/ra_parser/src/grammar/expressions/atom.rs +++ b/crates/ra_parser/src/grammar/expressions/atom.rs | |||
@@ -565,10 +565,10 @@ fn meta_var_expr(p: &mut Parser) -> CompletedMarker { | |||
565 | it | 565 | it |
566 | } | 566 | } |
567 | _ => { | 567 | _ => { |
568 | while !p.at(R_DOLLAR) { | 568 | while !p.at(EOF) && !p.at(R_DOLLAR) { |
569 | p.bump_any() | 569 | p.bump_any() |
570 | } | 570 | } |
571 | p.bump(R_DOLLAR); | 571 | p.eat(R_DOLLAR); |
572 | m.complete(p, ERROR) | 572 | m.complete(p, ERROR) |
573 | } | 573 | } |
574 | } | 574 | } |