From 2b83ab279dbfb77cfd699d6da944c51c2353e64a Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sat, 9 Mar 2024 18:22:12 -0500 Subject: Add langs to the language --- types.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'types.c') diff --git a/types.c b/types.c index 10a5a7a8..ba6c1b62 100644 --- a/types.c +++ b/types.c @@ -16,7 +16,7 @@ CORD type_to_cord(type_t *t) { case VoidType: return "Void"; case MemoryType: return "Memory"; case BoolType: return "Bool"; - case TextType: return "Text"; + case TextType: return Match(t, TextType)->lang ? Match(t, TextType)->lang : "Text"; case IntType: return Match(t, IntType)->bits == 64 ? "Int" : CORD_asprintf("Int%ld", Match(t, IntType)->bits); case NumType: return Match(t, NumType)->bits == 64 ? "Num" : CORD_asprintf("Num%ld", Match(t, NumType)->bits); case ArrayType: { -- cgit v1.2.3