From fa7a0ddc0963deb387f0cae7bb22ca968ee9146f Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 21 Sep 2025 20:51:24 -0400 Subject: Fix formatter for tables --- src/formatter/types.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/formatter/types.c') diff --git a/src/formatter/types.c b/src/formatter/types.c index 0cff38f0..3c77fa7d 100644 --- a/src/formatter/types.c +++ b/src/formatter/types.c @@ -19,11 +19,11 @@ Text_t format_type(type_ast_t *type) { } case TableTypeAST: { DeclareMatch(table, type, TableTypeAST); - Text_t code = Texts("{", format_type(table->key), "=", format_type(table->value)); + Text_t code = Texts("{", format_type(table->key), ":", format_type(table->value)); if (table->default_value) { OptionalText_t val = format_inline_code(table->default_value, (Table_t){}); assert(val.length >= 0); - code = Texts(code, "; default=", val); + code = Texts(code, "=", val); } return Texts(code, "}"); } -- cgit v1.2.3