diff options
| author | Robin Haberkorn <rhaberkorn@fmsbw.de> | 2026-09-27 00:12:30 +0200 |
|---|---|---|
| committer | Robin Haberkorn <rhaberkorn@fmsbw.de> | 2026-09-27 00:12:30 +0200 |
| commit | e48f1a6b5319224a92a8e7d60cbf5a4098d14ff5 (patch) | |
| tree | 466ba5783925972a079fd5921237e9f29878d35a /tests | |
| parent | e371b5fc710c597e175e6b7d7645b3a224a731a1 (diff) | |
^E at the end of a line in a string argument "swallows" the EOL characterHEADmaster-fmsbw-cimaster
This is similar to `\` at the line end in many languages like C and
allows you to split a very long string argument over several lines without
adding the EOL characters themselves.
The TECO equivalent to `\` would be ^Q, but it would be a semantic exception since
^Q (escaping) is supposed to _preserve_ the value of the following character.
Therefore I decided to use ^E instead.
This works with DOS and Mac line breaks as well.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/testsuite.at | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/testsuite.at b/tests/testsuite.at index 5d4ec43..4378ca0 100644 --- a/tests/testsuite.at +++ b/tests/testsuite.at @@ -138,6 +138,8 @@ TE_CHECK([[@I/X/ H@FR{X}/12345/ Z-5"N(0/0)']], 0, ignore, ignore) TE_CHECK([[@Ia^EQa(0/0)a]], 0, ignore, ignore) # Video-TECO-like syntax - might change in the future TE_CHECK([[@I/^E<65>^E<0x41>^E<0101>/ <-A:; -A-^^A"N(0/0)' R>]], 0, ignore, ignore) +TE_CHECK([[@I/01^E +23/ .-4"N(0/0)']], 0, ignore, ignore) # TODO: More string building constructs AT_CLEANUP |
