diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2015-06-26 19:21:57 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2015-06-26 19:21:57 -0700 |
commit | d734796cd312e6eea196f2a6b9c31e59b3a934c0 (patch) | |
tree | 4beffc24973957421c078f1e8f5e6f7ded850fcc /txr.1 | |
parent | b7419ec90436c09ac5cf1b0363cdba5d7e882bfb (diff) | |
download | txr-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.1 | 15 |
1 files changed, 10 insertions, 5 deletions
@@ -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. |