From 645d66e0de0f201404d9ad4b210f90c139a247ff Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 12 Jan 2025 16:49:58 -0500 Subject: Change table syntax to `{key=value}` and `{:K,V}`/`{K,V}` --- stdlib/tables.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'stdlib') diff --git a/stdlib/tables.c b/stdlib/tables.c index dea7a453..97419327 100644 --- a/stdlib/tables.c +++ b/stdlib/tables.c @@ -584,7 +584,7 @@ public Text_t Table$as_text(const void *obj, bool colorize, const TypeInfo_t *ty return Text$concat( Text("{"), generic_as_text(NULL, false, table.key), - Text(":"), + Text(","), generic_as_text(NULL, false, table.value), Text("}")); else @@ -602,7 +602,7 @@ public Text_t Table$as_text(const void *obj, bool colorize, const TypeInfo_t *ty void *entry = GET_ENTRY(*t, i); text = Text$concat(text, generic_as_text(entry, colorize, table.key)); if (table.value != &Void$info) - text = Text$concat(text, Text(":"), generic_as_text(entry + val_off, colorize, table.value)); + text = Text$concat(text, Text("="), generic_as_text(entry + val_off, colorize, table.value)); } if (t->fallback) { -- cgit v1.2.3