Get tests working

This commit is contained in:
Florian Diebold 2020-03-15 11:17:13 +01:00
parent 0f3a54dd4d
commit c32529ddd0
5 changed files with 19 additions and 7 deletions

View file

@ -565,10 +565,10 @@ fn meta_var_expr(p: &mut Parser) -> CompletedMarker {
it
}
_ => {
while !p.at(R_DOLLAR) {
while !p.at(EOF) && !p.at(R_DOLLAR) {
p.bump_any()
}
p.bump(R_DOLLAR);
p.eat(R_DOLLAR);
m.complete(p, ERROR)
}
}