Add support for break and cont to rustc
Testing proper cleanup is hampered by https://github.com/graydon/rust/issues/293
This commit is contained in:
@@ -829,6 +829,16 @@ impure fn parse_bottom_expr(parser p) -> @ast.expr {
|
||||
}
|
||||
}
|
||||
|
||||
case (token.BREAK) {
|
||||
p.bump();
|
||||
ex = ast.expr_break;
|
||||
}
|
||||
|
||||
case (token.CONT) {
|
||||
p.bump();
|
||||
ex = ast.expr_cont;
|
||||
}
|
||||
|
||||
case (token.PUT) {
|
||||
p.bump();
|
||||
alt (p.peek()) {
|
||||
|
||||
Reference in New Issue
Block a user