提交 638036fe 编写于 作者: G Graydon Hoare

Remove 'cont' from parser/lexer.

上级 f210deae
......@@ -1007,8 +1007,7 @@ fn parse_bottom_expr() -> pexpr {
} else if self.eat_keyword("break") {
ex = expr_break;
hi = self.span.hi;
} else if self.eat_keyword("cont") ||
self.eat_keyword("again") {
} else if self.eat_keyword("again") {
ex = expr_again;
hi = self.span.hi;
} else if self.eat_keyword("copy") {
......
......@@ -306,7 +306,7 @@ fn restricted_keyword_table() -> hashmap<str, ()> {
let keys = ~[
"alt", "again", "assert",
"break",
"check", "claim", "class", "const", "cont", "copy",
"check", "claim", "class", "const", "copy",
"do", "drop",
"else", "enum", "export", "extern",
"fail", "false", "fn", "for",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册