aboutsummaryrefslogtreecommitdiff
path: root/src/ast.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-10-11 15:31:38 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-10-11 15:31:38 -0400
commit7e8604daeb9239e1669c5414dd6caa37af30c4ff (patch)
tree8fcab61a296381280902a3fc7b2d8456e2a9b227 /src/ast.h
parent25fa8ace21f0f6874f5b3ad1248e0e5d21190c84 (diff)
Make `{a,b,c}` shorthand for `{a:Empty(), b:Empty(), c:Empty()}` and
display it that way. Same for type annotations.
Diffstat (limited to 'src/ast.h')
-rw-r--r--src/ast.h4
1 files changed, 2 insertions, 2 deletions
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;