about summary refs log tree commit diff
path: root/src/comp/syntax/parse
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2011-08-19 15:26:52 -0700
committerBrian Anderson <banderson@mozilla.com>2011-08-20 11:04:00 -0700
commita7d837be74a8fc5a81185599b647974d08275e62 (patch)
treec8da533586bc474a121364f85d18dee9b4d8aa82 /src/comp/syntax/parse
parent518dc52f85c2efb67aaa1208c02e9a7e0bdaca49 (diff)
downloadrust-a7d837be74a8fc5a81185599b647974d08275e62.tar.gz
rust-a7d837be74a8fc5a81185599b647974d08275e62.zip
Stop parsing .() indexes
Diffstat (limited to 'src/comp/syntax/parse')
-rw-r--r--src/comp/syntax/parse/parser.rs7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/comp/syntax/parse/parser.rs b/src/comp/syntax/parse/parser.rs
index 8113f9fd94d..ea72bcdb680 100644
--- a/src/comp/syntax/parse/parser.rs
+++ b/src/comp/syntax/parse/parser.rs
@@ -1107,13 +1107,6 @@ fn parse_dot_or_call_expr_with(p: &parser, e: @ast::expr) -> @ast::expr {
                 p.bump();
                 e = mk_expr(p, lo, hi, ast::expr_field(e, p.get_str(i)));
               }
-              token::LPAREN. {
-                p.bump();
-                let ix = parse_expr(p);
-                hi = ix.span.hi;
-                expect(p, token::RPAREN);
-                e = mk_expr(p, lo, hi, ast::expr_index(e, ix));
-              }
               t { unexpected(p, t); }
             }
           }