diff options
| author | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-01-18 17:44:19 -0800 |
|---|---|---|
| committer | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-01-18 21:29:02 -0800 |
| commit | a45319773468617092e79d950afe6f7704a32420 (patch) | |
| tree | 5945e231d90774be14a05102069e02ab6494689b /src/comp | |
| parent | bf83fd30919d7c5487391f83a36e5b7ce56e883c (diff) | |
| download | rust-a45319773468617092e79d950afe6f7704a32420.tar.gz rust-a45319773468617092e79d950afe6f7704a32420.zip | |
Another minor parser fix for nullary-tag patterns
Diffstat (limited to 'src/comp')
| -rw-r--r-- | src/comp/syntax/parse/parser.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/comp/syntax/parse/parser.rs b/src/comp/syntax/parse/parser.rs index e0b00d65f70..d7f5e205bea 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; } |
