From 5b028f527f2c487a5f4196fdf3cfc7a2acef74ff Mon Sep 17 00:00:00 2001 From: Tim Chevalier Date: Thu, 19 Jan 2012 01:03:57 -0800 Subject: Remove support for the '.' after a nullary tag in a pattern (Commit also includes lots of changes to remove '.'s that a git merge messed up, or else it was monkeys.) --- src/comp/syntax/parse/parser.rs | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/comp/syntax/parse/parser.rs') diff --git a/src/comp/syntax/parse/parser.rs b/src/comp/syntax/parse/parser.rs index 7515a393ee9..0da193c2078 100644 --- a/src/comp/syntax/parse/parser.rs +++ b/src/comp/syntax/parse/parser.rs @@ -1485,8 +1485,6 @@ fn parse_pat(p: parser) -> @ast::pat { } } else if is_plain_ident(p) && alt p.look_ahead(1u) { - // Take this out once the libraries change - token::DOT | token::LPAREN | token::LBRACKET | token::LT { false @@ -1508,8 +1506,6 @@ fn parse_pat(p: parser) -> @ast::pat { args = a.node; hi = a.span.hi; } - // take this out once the libraries change - token::DOT. { args = []; p.bump(); } _ { args = []; } } // at this point, we're not sure whether it's a tag or a bind -- cgit 1.4.1-3-g733a5