aboutsummaryrefslogtreecommitdiff
path: root/parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/parse.c b/parse.c
index c63b23df..895b2861 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);