From 75e0201fadacd29b3bbee1fdd6a1ba2c16c32bb8 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 15 Sep 2024 14:03:16 -0400 Subject: Improve automatic text quoting so it minimizes escape sequences when possible. --- test/text.tm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test/text.tm') diff --git a/test/text.tm b/test/text.tm index 44e42d35..5de66a60 100644 --- a/test/text.tm +++ b/test/text.tm @@ -20,7 +20,7 @@ func main(): = ["PENGUIN"] >> \[31;1] - = "\e[31;1m" + = "$\e[31;1m" >> \UE9 == \U65\U301 = yes @@ -91,20 +91,20 @@ func main(): line one line two " - = "line one\nline two" + = "line one$\nline two" !! Interpolation tests: >> "A $(1+2)" = "A 3" >> 'A $(1+2)' - = "A $(1+2)" + = 'A $(1+2)' >> `A $(1+2)` = "A 3" >> $"A $(1+2)" = "A 3" >> $$"A $(1+2)" - = "A $(1+2)" + = 'A $(1+2)' >> $="A =(1+2)" = "A 3" >> ${one {nested} two $(1+2)} -- cgit v1.2.3