diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2014-03-15 17:43:45 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2014-03-15 17:43:45 -0700 |
commit | ef14bd0e49bec4025b80bdc01638b7a34b7778de (patch) | |
tree | 1ce70855ae668f6e734f0815a94615021b6e4f48 | |
parent | 610aaad39b888898003dbcc057055c95883918b3 (diff) | |
download | txr-ef14bd0e49bec4025b80bdc01638b7a34b7778de.tar.gz txr-ef14bd0e49bec4025b80bdc01638b7a34b7778de.tar.bz2 txr-ef14bd0e49bec4025b80bdc01638b7a34b7778de.zip |
Document that leading whitespace before a backslash line
continuator is also deleted in string literals.
-rw-r--r-- | txr.1 | 17 |
1 files changed, 15 insertions, 2 deletions
@@ -1111,11 +1111,24 @@ as a delimiter. Thus, "\ex21;;" represents "!;". If the line ends in the middle of a literal, it is an error, unless the last character is a backslash. This backslash is a special escape which does not denote a character; rather, it indicates that the string literal continues -on the next line. Leading whitespace in the following line is deleted, and -does not constitute part of the string literal, which allows for indentation. +on the next line. The backslash is deleted, along with whitespace which +immediately precedes it, as well as leading whitespace in the following line. The escape sequence "\e " (backslash space) can be used to encode a significant space. +Example: + + "foo \e + bar" + + "foo \e + \ bar" + + "foo\ \e + bar" + +The first string literal is the string "foobar". The second two are "foo bar". + .SS String Quasiliterals Quasiliterals are similar to string literals, except that they may |