From 5fc7577b5a3bc2c445522dfd5b287e1c6eddc3e9 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 31 Aug 2025 23:33:22 -0400 Subject: Switch to using optional return values for list indexing. --- src/parse/suffixes.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/parse') diff --git a/src/parse/suffixes.c b/src/parse/suffixes.c index 7e748caf..4aa09cb8 100644 --- a/src/parse/suffixes.c +++ b/src/parse/suffixes.c @@ -47,9 +47,8 @@ ast_t *parse_index_suffix(parse_ctx_t *ctx, ast_t *lhs) { whitespace(&pos); ast_t *index = optional(ctx, &pos, parse_extended_expr); whitespace(&pos); - bool unchecked = match(&pos, ";") && (spaces(&pos), match_word(&pos, "unchecked") != 0); expect_closing(ctx, &pos, "]", "I wasn't able to parse the rest of this index"); - return NewAST(ctx->file, start, pos, Index, .indexed = lhs, .index = index, .unchecked = unchecked); + return NewAST(ctx->file, start, pos, Index, .indexed = lhs, .index = index); } ast_t *parse_comprehension_suffix(parse_ctx_t *ctx, ast_t *expr) { -- cgit v1.2.3