From 8a7ea941bb47326ea05431fa58c3d88d60e4a6d3 Mon Sep 17 00:00:00 2001 From: Marijn Haverbeke Date: Tue, 29 Mar 2011 11:35:12 +0200 Subject: Support break and cont in pretty-printer --- src/comp/front/parser.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/comp/front/parser.rs') 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; } -- cgit v1.2.3