aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--parse.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/parse.c b/parse.c
index 275155bc..33a5b312 100644
--- a/parse.c
+++ b/parse.c
@@ -995,6 +995,7 @@ ast_t *parse_index_suffix(parse_ctx_t *ctx, ast_t *lhs) {
if (!lhs) return NULL;
const char *start = lhs->start;
const char *pos = lhs->end;
+ spaces(&pos);
if (!match(&pos, "[")) return NULL;
whitespace(&pos);
ast_t *index = optional(ctx, &pos, parse_extended_expr);