diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-10-11 15:31:38 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-10-11 15:31:38 -0400 |
| commit | 7e8604daeb9239e1669c5414dd6caa37af30c4ff (patch) | |
| tree | 8fcab61a296381280902a3fc7b2d8456e2a9b227 /src/ast.h | |
| parent | 25fa8ace21f0f6874f5b3ad1248e0e5d21190c84 (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.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |
