summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog11
-rw-r--r--RELNOTES9
-rw-r--r--txr.18
3 files changed, 25 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index c090e34c..4a3803b6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
2013-07-13 Kaz Kylheku <kaz@kylheku.com>
+ Version 67
+
+ txr.1: Documented line continuation for string literals,
+ supported since Version 38 but not clarified properly.
+
+ RELNOTES: Updated.
+
+2013-07-13 Kaz Kylheku <kaz@kylheku.com>
+
* parser.l: Diagnose unrecognized escape sequences in string
literals and quasiliterals and after @\.
Support "\ " (backslash space) escape in string literals
@@ -11,8 +20,6 @@
2013-07-12 Kaz Kylheku <kaz@kylheku.com>
- Version 67
-
* txr.c (version): Bumped.
* txr.1: Bumped version, set date and documented string-cmp.
diff --git a/RELNOTES b/RELNOTES
index 88cee54d..00df6c79 100644
--- a/RELNOTES
+++ b/RELNOTES
@@ -1,4 +1,4 @@
- TXR 66
+ TXR 67
2013-07-12
@@ -10,6 +10,13 @@
- New pattern language directive: @(require ...).
+ Bugs
+
+ - Unrecognized backslash escapes in string literals
+ and string quasiliterals are diagnosed.
+
+ - Backslash-space escape recognized in string literals
+ and string quasiliterals.
diff --git a/txr.1 b/txr.1
index a753aec4..189a1770 100644
--- a/txr.1
+++ b/txr.1
@@ -1089,6 +1089,14 @@ delimiter disappears. To write a literal semicolon immediately after a hex
or octal escape, write two semicolons, the first of which will be interpreted
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.
+The escape sequence "\e " (backslash space) can be used to encode a
+significant space.
+
.SS String Quasiliterals
Quasiliterals are similar to string literals, except that they may