From 566f97307dd5d960d4b9ce2f7308bc9f0ec016c1 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sat, 30 Nov 2024 14:09:04 -0500 Subject: Fix parsing issue that allowed spaces around ':' for method calls --- parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parse.c b/parse.c index 5e062359..eb77c181 100644 --- a/parse.c +++ b/parse.c @@ -1633,8 +1633,8 @@ ast_t *parse_method_call_suffix(parse_ctx_t *ctx, ast_t *self) { const char *start = self->start; const char *pos = self->end; - spaces(&pos); if (!match(&pos, ":")) return NULL; + if (*pos == ' ') return NULL; const char *fn = get_id(&pos); if (!fn) return NULL; spaces(&pos); -- cgit v1.2.3