diff options
| author | Marijn Haverbeke <[email protected]> | 2011-03-29 11:35:12 +0200 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2011-03-31 14:41:40 +0000 |
| commit | 8a7ea941bb47326ea05431fa58c3d88d60e4a6d3 (patch) | |
| tree | 6f4bca018002756f9edb802cf9a31c6669d16912 /src/comp/front/parser.rs | |
| parent | Add effect field to ast.ty_fn. (diff) | |
| download | rust-8a7ea941bb47326ea05431fa58c3d88d60e4a6d3.tar.xz rust-8a7ea941bb47326ea05431fa58c3d88d60e4a6d3.zip | |
Support break and cont in pretty-printer
Diffstat (limited to 'src/comp/front/parser.rs')
| -rw-r--r-- | src/comp/front/parser.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/comp/front/parser.rs b/src/comp/front/parser.rs index 3ee73576..cc3388b3 100644 --- a/src/comp/front/parser.rs +++ b/src/comp/front/parser.rs @@ -1683,6 +1683,8 @@ fn stmt_ends_with_semi(@ast.stmt stmt) -> bool { case (ast.expr_index(_,_,_)) { ret true; } case (ast.expr_path(_,_,_)) { ret true; } case (ast.expr_fail) { ret true; } + case (ast.expr_break) { ret true; } + case (ast.expr_cont) { ret true; } case (ast.expr_ret(_)) { ret true; } case (ast.expr_put(_)) { ret true; } case (ast.expr_be(_)) { ret true; } |