Another minor parser fix for nullary-tag patterns

This commit is contained in:
Tim Chevalier 2012-01-18 17:44:19 -08:00
parent bf83fd3091
commit a453197734

View File

@ -1508,7 +1508,7 @@ fn parse_pat(p: parser) -> @ast::pat {
args = a.node;
hi = a.span.hi;
}
token::LBRACE. { args = []; }
token::LBRACE. | token::RPAREN. | token::COMMA. { args = []; }
// take this out once the libraries change
token::DOT. { args = []; p.bump(); }
_ { expect(p, token::LPAREN); fail; }