Bugfix for parsing empty method call names

This commit is contained in:
Bruce Hill 2024-11-07 14:42:24 -05:00
parent bd3df66165
commit 9c842201f3

View File

@ -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);