Add a special case for '???'
This commit is contained in:
parent
1f9147187d
commit
67c22014e7
@ -1632,6 +1632,10 @@ PARSER(parse_term_no_suffix) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
PARSER(parse_term) {
|
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);
|
ast_t *term = parse_term_no_suffix(ctx, pos);
|
||||||
if (!term) return NULL;
|
if (!term) return NULL;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user