summaryrefslogtreecommitdiffstats
path: root/txr.1
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2015-06-26 19:21:57 -0700
committerKaz Kylheku <kaz@kylheku.com>2015-06-26 19:21:57 -0700
commitd734796cd312e6eea196f2a6b9c31e59b3a934c0 (patch)
tree4beffc24973957421c078f1e8f5e6f7ded850fcc /txr.1
parentb7419ec90436c09ac5cf1b0363cdba5d7e882bfb (diff)
downloadtxr-d734796cd312e6eea196f2a6b9c31e59b3a934c0.tar.gz
txr-d734796cd312e6eea196f2a6b9c31e59b3a934c0.tar.bz2
txr-d734796cd312e6eea196f2a6b9c31e59b3a934c0.zip
Third round of quasiliteral-related fixes.
* parser.l (char_esc): Recognize \@ escape. (grammar): Add a rule for a \@ escape in quasiliterals, and quasi word list literals. * txr.1: Document \@, and remove the lie that @@ encodes for a single @ in quasiliterals.
Diffstat (limited to 'txr.1')
-rw-r--r--txr.115
1 files changed, 10 insertions, 5 deletions
diff --git a/txr.1 b/txr.1
index 8d2e2f8d..8992a257 100644
--- a/txr.1
+++ b/txr.1
@@ -2481,13 +2481,18 @@ the quasiliteral
represents the string
.strn "one apple and two bananas" .
A backquote escaped by a backslash represents
-itself, and two consecutive
+itself. Unlike in directive syntax, two consecutive
.code @
-characters code for a literal
-.codn @ .
-There is no
+characters do not code for a literal
+.codn @ ,
+but cause a syntax error. The reason for this is that compounding of the
+.code @
+syntax is meaningful.
+Instead, there is a
.code \e@
-escape. Quasiliterals support the full output variable
+escape for encoding a literal
+.code @
+character. Quasiliterals support the full output variable
syntax. Expressions within variables substitutions follow the evaluation rules
of \*(TL when the quasiliteral occurs in \*(TL, and the rules of
the \*(TX pattern language when the quasiliteral occurs in the pattern language.