aboutsummaryrefslogtreecommitdiff
path: root/parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/parse.c b/parse.c
index 8aebb1d3..bc25e89b 100644
--- a/parse.c
+++ b/parse.c
@@ -1532,6 +1532,8 @@ PARSER(parse_lambda) {
PARSER(parse_null) {
const char *start = pos;
+ if (match_word(&pos, "NULL"))
+ return NewAST(ctx->file, start, pos, Null, .type=NULL);
if (!match(&pos, "!")) return NULL;
type_ast_t *type = parse_type(ctx, pos);
if (!type) return NULL;