Fix bug in parse rule for expr_index.
This commit is contained in:
parent
e04c24769e
commit
d5ed5e7044
@ -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 (_) {
|
||||
|
Loading…
Reference in New Issue
Block a user