For #2229, recognize 'again' in place of 'cont', final change pending snapshot.

This commit is contained in:
Graydon Hoare
2012-07-06 15:46:31 -07:00
parent e20f63d095
commit ceac155211
19 changed files with 34 additions and 34 deletions

View File

@@ -966,8 +966,9 @@ class parser {
} else if self.eat_keyword("break") {
ex = expr_break;
hi = self.span.hi;
} else if self.eat_keyword("cont") {
ex = expr_cont;
} else if self.eat_keyword("cont") ||
self.eat_keyword("again") {
ex = expr_again;
hi = self.span.hi;
} else if self.eat_keyword("copy") {
let e = self.parse_expr();