diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-10-08 21:46:03 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-10-08 21:46:03 -0400 |
| commit | 6ae27d409a259f47a317c25adf4e0bab0edbddb4 (patch) | |
| tree | baaefc3d6a686b58b814d15150c8d75f832d569a | |
| parent | 839c1983a0dad0232da3ceda9c7c02a49715453c (diff) | |
Better message
| -rw-r--r-- | parse.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1005,7 +1005,7 @@ PARSER(parse_reduction) { ast_t *fallback = NULL; if (match_word(&pos, "else")) { - expect_str(ctx, start, &pos, ":", "I expected a ':' here"); + expect_str(ctx, pos-strlen("else"), &pos, ":", "I expected a ':' for this 'else'"); fallback = expect(ctx, pos-4, &pos, parse_expr, "I couldn't parse the expression after this 'else'"); } |
