diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-07-02 13:21:17 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-07-02 13:21:17 -0400 |
| commit | dc1616a3bf7d075e0b50f783313ea6a5b1076fb4 (patch) | |
| tree | 4802698996d418f44f42d903eb1a752ba21605ee | |
| parent | ba66a51a9e1ae0b732578f0f90702088dfe976a3 (diff) | |
Add multiline string
| -rw-r--r-- | learnxiny.tm | 9 |
1 files changed, 9 insertions, 0 deletions
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 |
