Fix another bug in expr_index parse rule.
This commit is contained in:
parent
d5ed5e7044
commit
4e1046a508
1 changed files with 1 additions and 1 deletions
|
@ -499,7 +499,7 @@ impure fn parse_path_expr(parser p) -> @ast.expr {
|
||||||
|
|
||||||
case (token.LPAREN) {
|
case (token.LPAREN) {
|
||||||
p.bump();
|
p.bump();
|
||||||
auto ix = parse_bottom_expr(p);
|
auto ix = parse_expr(p);
|
||||||
hi = ix.span;
|
hi = ix.span;
|
||||||
expect(p, token.RPAREN);
|
expect(p, token.RPAREN);
|
||||||
auto e_ = ast.expr_index(e, ix, ast.ann_none);
|
auto e_ = ast.expr_index(e, ix, ast.ann_none);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue