aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_parser/src/grammar/expressions
diff options
context:
space:
mode:
authorFlorian Diebold <[email protected]>2020-03-15 10:17:13 +0000
committerFlorian Diebold <[email protected]>2020-03-16 17:38:19 +0000
commitc32529ddd0d66a219226dd63da2d4b1825375c0e (patch)
tree060bf75bcd43d2bd1ed9519bf1030ca7f24c7af0 /crates/ra_parser/src/grammar/expressions
parent0f3a54dd4d439a6598526144c4ecccee9c5f1362 (diff)
Get tests working
Diffstat (limited to 'crates/ra_parser/src/grammar/expressions')
-rw-r--r--crates/ra_parser/src/grammar/expressions/atom.rs4
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 }