From a45319773468617092e79d950afe6f7704a32420 Mon Sep 17 00:00:00 2001 From: Tim Chevalier Date: Wed, 18 Jan 2012 17:44:19 -0800 Subject: [PATCH] Another minor parser fix for nullary-tag patterns --- src/comp/syntax/parse/parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/comp/syntax/parse/parser.rs b/src/comp/syntax/parse/parser.rs index e0b00d65f70e..d7f5e205bea9 100644 --- a/src/comp/syntax/parse/parser.rs +++ b/src/comp/syntax/parse/parser.rs @@ -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; }