Support break and cont in pretty-printer
This commit is contained in:
parent
f8393cc572
commit
8a7ea941bb
2 changed files with 8 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue