diff options
| author | Graydon Hoare <graydon@mozilla.com> | 2012-07-09 14:47:45 -0700 |
|---|---|---|
| committer | Graydon Hoare <graydon@mozilla.com> | 2012-07-09 14:47:45 -0700 |
| commit | 638036fe55ff6f0325efa595c4c37317bdc0281a (patch) | |
| tree | 882c3b11d59920dc0f152f8afeb4cfc1019e6f08 /src/libsyntax/parse | |
| parent | f210deae3d522281ca3d85cb6f82dca742abd6e7 (diff) | |
| download | rust-638036fe55ff6f0325efa595c4c37317bdc0281a.tar.gz rust-638036fe55ff6f0325efa595c4c37317bdc0281a.zip | |
Remove 'cont' from parser/lexer.
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 3 | ||||
| -rw-r--r-- | src/libsyntax/parse/token.rs | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 6a166591887..7d36216aa9b 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -1007,8 +1007,7 @@ class parser { } 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") { diff --git a/src/libsyntax/parse/token.rs b/src/libsyntax/parse/token.rs index b3fad7e9ffd..6416fafd6ad 100644 --- a/src/libsyntax/parse/token.rs +++ b/src/libsyntax/parse/token.rs @@ -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", |
