From 9c842201f312edd483ee99dcf3e321bdac2a7073 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Thu, 7 Nov 2024 14:42:24 -0500 Subject: [PATCH] Bugfix for parsing empty method call names --- parse.c | 1 + 1 file changed, 1 insertion(+) diff --git a/parse.c b/parse.c index c63b23d..895b286 100644 --- a/parse.c +++ b/parse.c @@ -1601,6 +1601,7 @@ ast_t *parse_method_call_suffix(parse_ctx_t *ctx, ast_t *self) { spaces(&pos); if (!match(&pos, ":")) return NULL; const char *fn = get_id(&pos); + if (!fn) return NULL; spaces(&pos); if (!match(&pos, "(")) return NULL; whitespace(&pos);