diff options
| -rw-r--r-- | src/comp/syntax/parse/parser.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/comp/syntax/parse/parser.rs b/src/comp/syntax/parse/parser.rs index d7f5e205bea..9a3f0b4738f 100644 --- a/src/comp/syntax/parse/parser.rs +++ b/src/comp/syntax/parse/parser.rs @@ -1508,7 +1508,8 @@ fn parse_pat(p: parser) -> @ast::pat { args = a.node; hi = a.span.hi; } - token::LBRACE. | token::RPAREN. | token::COMMA. { args = []; } + 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; } |
