allow dotless nullary patterns inside or-patterns
This commit is contained in:
parent
a453197734
commit
209d8c854f
1 changed files with 2 additions and 1 deletions
|
|
@ -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; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue