diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-04-29 23:55:41 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-04-29 23:55:41 -0400 |
| commit | 45f0051c50949744fd1a52313fbf48a944f49c10 (patch) | |
| tree | 367137fc8bea4100db58f1d0cfb72dc21dc7fdff /src/parse.c | |
| parent | ff9118a9bdd1d4384bef1829ed640aed371b7fc3 (diff) | |
Fix parser err
Diffstat (limited to 'src/parse.c')
| -rw-r--r-- | src/parse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parse.c b/src/parse.c index a1b54b73..12fafc0c 100644 --- a/src/parse.c +++ b/src/parse.c @@ -568,7 +568,7 @@ type_ast_t *parse_func_type(parse_ctx_t *ctx, const char *pos) { const char *start = pos; if (!match_word(&pos, "func")) return NULL; spaces(&pos); - expect_str(&pos, "(", "I expected a parenthesis here"); + expect_str(ctx, start, &pos, "(", "I expected a parenthesis here"); arg_ast_t *args = parse_args(ctx, &pos); spaces(&pos); type_ast_t *ret = match(&pos, "->") ? optional(ctx, &pos, parse_type) : NULL; |
