From 67c22014e751b448aeefb8e62b4fa5e0137d40d1 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 25 Mar 2025 15:47:05 -0400 Subject: Add a special case for '???' --- src/parse.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/parse.c') diff --git a/src/parse.c b/src/parse.c index cc716578..98779b30 100644 --- a/src/parse.c +++ b/src/parse.c @@ -1632,6 +1632,10 @@ PARSER(parse_term_no_suffix) { } PARSER(parse_term) { + const char *start = pos; + if (match(&pos, "???")) + parser_err(ctx, start, pos, "This value needs to be filled in!"); + ast_t *term = parse_term_no_suffix(ctx, pos); if (!term) return NULL; -- cgit v1.2.3