diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-11-26 13:07:48 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-11-26 13:07:48 -0500 |
| commit | c4b6159f76d58a3410c818655d3e60647f08c2ad (patch) | |
| tree | 3b084e85dd50ccc9d635d123c12352249bcef2b8 | |
| parent | 971b72fa2587abac32162a008918d3ed25ccce72 (diff) | |
Permit spaces before indexes
| -rw-r--r-- | parse.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |
