diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-09-15 14:03:16 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-09-15 14:03:16 -0400 |
| commit | 75e0201fadacd29b3bbee1fdd6a1ba2c16c32bb8 (patch) | |
| tree | 7a19fd8e4e720c04cabff7bcdaf1a36edd8f14c3 /test/text.tm | |
| parent | 6012a00763afdd467e71b1657bd9a39a4cba4493 (diff) | |
Improve automatic text quoting so it minimizes escape sequences when
possible.
Diffstat (limited to 'test/text.tm')
| -rw-r--r-- | test/text.tm | 8 |
1 files changed, 4 insertions, 4 deletions
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)} |
