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/pretty | |
| 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/pretty')
| -rw-r--r-- | src/comp/pretty/pprust.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/comp/pretty/pprust.rs b/src/comp/pretty/pprust.rs index e7e2746c..258df73f 100644 --- a/src/comp/pretty/pprust.rs +++ b/src/comp/pretty/pprust.rs @@ -553,6 +553,12 @@ impure fn print_expr(ps s, &@ast.expr expr) { case (ast.expr_fail) { wrd(s.s, "fail"); } + case (ast.expr_break) { + wrd(s.s, "break"); + } + case (ast.expr_cont) { + wrd(s.s, "cont"); + } case (ast.expr_ret(?result)) { wrd(s.s, "ret"); alt (result) { |