about summary refs log tree commit diff
path: root/src/comp/syntax/parse
diff options
context:
space:
mode:
authorTim Chevalier <chevalier@alum.wellesley.edu>2012-01-18 19:15:56 -0800
committerTim Chevalier <chevalier@alum.wellesley.edu>2012-01-18 21:29:02 -0800
commit8c97854c7d5da18d930ba82b04a4a071f2c43594 (patch)
tree1299dc450469c6decb0effe5cf9909027df08e54 /src/comp/syntax/parse
parent209d8c854f99ffa14b7292035837afa0852eb28b (diff)
Allow any alternative (not just a block) to follow a nullary tag pattern
Diffstat (limited to 'src/comp/syntax/parse')
-rw-r--r--src/comp/syntax/parse/parser.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/comp/syntax/parse/parser.rs b/src/comp/syntax/parse/parser.rs
index 9a3f0b4738f..13804d735e4 100644
--- a/src/comp/syntax/parse/parser.rs
+++ b/src/comp/syntax/parse/parser.rs
@@ -1508,11 +1508,9 @@ fn parse_pat(p: parser) -> @ast::pat {
                 args = a.node;
                 hi = a.span.hi;
               }
-              token::LBRACE. | token::RPAREN. | token::COMMA.
-                  | token::BINOP(token::OR.) { args = []; }
               // take this out once the libraries change
               token::DOT. { args = []; p.bump(); }
-              _ { expect(p, token::LPAREN); fail; }
+              _ { args = []; }
             }
             // at this point, we're not sure whether it's a tag or a bind
             if vec::len(args) == 0u &&