Fix bug in parse rule for expr_index.

This commit is contained in:
Graydon Hoare 2010-12-09 17:12:08 -08:00
parent e04c24769e
commit d5ed5e7044

View File

@ -501,9 +501,14 @@ impure fn parse_path_expr(parser p) -> @ast.expr {
p.bump();
auto ix = parse_bottom_expr(p);
hi = ix.span;
expect(p, token.RPAREN);
auto e_ = ast.expr_index(e, ix, ast.ann_none);
e = @spanned(lo, hi, e_);
}
case (?t) {
unexpected(p, t);
}
}
}
case (_) {