diff options
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 1f80eac461d..c714fe59b13 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -1600,7 +1600,7 @@ class parser { fn parse_loop_expr() -> @expr { let opt_ident; - if is_ident(self.token) { + if is_ident(self.token) && !self.is_any_keyword(copy self.token) { opt_ident = some(self.parse_ident()); self.expect(token::COLON); } else { |
