aboutsummaryrefslogtreecommitdiff
path: root/src/parse.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-03-25 15:47:05 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-03-25 15:47:05 -0400
commit67c22014e751b448aeefb8e62b4fa5e0137d40d1 (patch)
tree48654f7d5bb6afa6c342b8a39b3dc8edb7f5867d /src/parse.c
parent1f9147187d66e95a0ffedd4d5595ec98646b5fe1 (diff)
Add a special case for '???'
Diffstat (limited to 'src/parse.c')
-rw-r--r--src/parse.c4
1 files changed, 4 insertions, 0 deletions
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;