about summary refs log tree commit diff
path: root/src/comp/syntax/parse
diff options
context:
space:
mode:
authorMarijn Haverbeke <marijnh@gmail.com>2011-07-27 16:01:31 +0200
committerMarijn Haverbeke <marijnh@gmail.com>2011-07-27 16:01:31 +0200
commite3552da0e60eec7a018ddb2a2212d03d4f6fa338 (patch)
tree9937a1eceff31b758f43b0bab6481c6a4a8214bc /src/comp/syntax/parse
parent6e2a7bff7faf040b1eced0ee3547b28f6962cedc (diff)
downloadrust-e3552da0e60eec7a018ddb2a2212d03d4f6fa338.tar.gz
rust-e3552da0e60eec7a018ddb2a2212d03d4f6fa338.zip
No longer allow 'case' keyword before patterns
Diffstat (limited to 'src/comp/syntax/parse')
-rw-r--r--src/comp/syntax/parse/parser.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/comp/syntax/parse/parser.rs b/src/comp/syntax/parse/parser.rs
index 0b402e2e054..1782c826785 100644
--- a/src/comp/syntax/parse/parser.rs
+++ b/src/comp/syntax/parse/parser.rs
@@ -1336,11 +1336,7 @@ fn parse_alt_expr(p: &parser) -> @ast::expr {
         // Optionally eat the case keyword.
         // FIXME remove this (and the optional parens) once we've updated our
         // code to not use the old syntax
-        eat_word(p, "case");
-        let parens = false;
-        if p.peek() == token::LPAREN { parens = true; p.bump(); }
         let pats = parse_pats(p);
-        if parens { expect(p, token::RPAREN); }
         let blk = parse_block(p);
         arms += ~[{pats: pats, block: blk}];
     }