diff options
Diffstat (limited to 'src/comp/front/parser.rs')
| -rw-r--r-- | src/comp/front/parser.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/comp/front/parser.rs b/src/comp/front/parser.rs index 97742a18..d42f7b45 100644 --- a/src/comp/front/parser.rs +++ b/src/comp/front/parser.rs @@ -636,6 +636,7 @@ impure fn parse_do_while_expr(parser p) -> @ast.expr { expect (p, token.LPAREN); auto cond = parse_expr(p); expect(p, token.RPAREN); + expect(p, token.SEMI); hi = cond.span; ret @spanned(lo, hi, ast.expr_do_while(body, cond, ast.ann_none)); } |