From dbbc63a5ad6b518a7c9114c448c3f1b0d7cda6fb Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Sat, 13 Jul 2013 16:34:36 -0700 Subject: Version 67 txr.1: Documented line continuation for string literals, supported since Version 38 but not clarified properly. RELNOTES: Updated. --- ChangeLog | 11 +++++++++-- RELNOTES | 9 ++++++++- txr.1 | 8 ++++++++ 3 files changed, 25 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index c090e34c..4a3803b6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2013-07-13 Kaz Kylheku + + 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 * parser.l: Diagnose unrecognized escape sequences in string @@ -11,8 +20,6 @@ 2013-07-12 Kaz Kylheku - 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 -- cgit v1.2.3