From 7e8604daeb9239e1669c5414dd6caa37af30c4ff Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sat, 11 Oct 2025 15:31:38 -0400 Subject: Make `{a,b,c}` shorthand for `{a:Empty(), b:Empty(), c:Empty()}` and display it that way. Same for type annotations. --- src/ast.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ast.h') diff --git a/src/ast.h b/src/ast.h index 93723dbb..2fec9c57 100644 --- a/src/ast.h +++ b/src/ast.h @@ -116,7 +116,7 @@ struct type_ast_s { type_ast_t *item; } ListTypeAST; struct { - type_ast_t *key, *value; + type_ast_t *key, *value /* value may be NULL */; ast_t *default_value; } TableTypeAST; struct { @@ -339,7 +339,7 @@ struct ast_s { ast_list_t *entries; } Table; struct { - ast_t *key, *value; + ast_t *key, *value /* value may be NULL */; } TableEntry; struct { ast_list_t *vars; -- cgit v1.2.3