From dc1616a3bf7d075e0b50f783313ea6a5b1076fb4 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 2 Jul 2024 13:21:17 -0400 Subject: Add multiline string --- learnxiny.tm | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/learnxiny.tm b/learnxiny.tm index 0c75b66b..fdc24516 100644 --- a/learnxiny.tm +++ b/learnxiny.tm @@ -21,6 +21,15 @@ func main(): // Strings can use interpolation with curly braces: say("My variable is {my_variable}") + say(" + Multiline strings begin with a " at the end of a line and continue in + an indented region below. + You can have leading spaces after the first line + and they'll be preserved. + + The multiline string won't include a leading or trailing newline. + ") + // Docstring tests use ">>" and when the program runs, they will print // their source code to the console on stderr. >> 1 + 2 -- cgit v1.2.3