aboutsummaryrefslogtreecommitdiff
path: root/stdlib
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-01-12 16:49:58 -0500
committerBruce Hill <bruce@bruce-hill.com>2025-01-12 16:49:58 -0500
commit645d66e0de0f201404d9ad4b210f90c139a247ff (patch)
tree08367c3631b928752cde94083bdfe2ae49db0b79 /stdlib
parentb025cf269d2e07e179be4a0e34d936862dc640c2 (diff)
Change table syntax to `{key=value}` and `{:K,V}`/`{K,V}`
Diffstat (limited to 'stdlib')
-rw-r--r--stdlib/tables.c4
1 files changed, 2 insertions, 2 deletions
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) {