diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2014-03-15 16:28:50 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2014-03-15 16:28:50 -0700 |
commit | 610aaad39b888898003dbcc057055c95883918b3 (patch) | |
tree | 09358b3f985f42029cc5cba7252b0148e541078d /txr.1 | |
parent | 122b39ad1a2404987157f78ff39a23a4ebb9bbad (diff) | |
download | txr-610aaad39b888898003dbcc057055c95883918b3.tar.gz txr-610aaad39b888898003dbcc057055c95883918b3.tar.bz2 txr-610aaad39b888898003dbcc057055c95883918b3.zip |
* parser.l: Bugfix. When handling a backslash-newline continuation
in the SPECIAL, NESTED and BRACED states, do not pop the state in all
three, only in SPECIAL (to terminate the @\ continuation).
* txr.1: Eliminate wrong claim that string literals do not split across lines,
which is directly contradicted two paragraphs later. Document that
quasiliterals also split.
* genvim.txr (txr_regex, txl_regex): These definitions change from "syn match"
to "syn region" so that the backslash-newline continuation can be properly
handled.
(txr_string, txr_quasilit): Correctly handle split literals.
* txr.vim: Regenerated.
Diffstat (limited to 'txr.1')
-rw-r--r-- | txr.1 | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -1097,8 +1097,8 @@ Scheme language. Note that #\elinefeed and #\enewline are the same character. .SS String Literals -String literals are delimited by double quote respectively, and may not span -multiple lines. A double quote within a string literal is encoded using \e" +String literals are delimited by double quote respectively. +A double quote within a string literal is encoded using \e" and a backslash is encoded as \e\e. Backslash escapes like \en and \et are recognized, as are hexadecimal escapes like \exFF or \exxabc and octal escapes like \e123. Ambiguity between an escape and subsequent @@ -1130,6 +1130,9 @@ syntax. Expressions within variables substitutions follow the evaluation rules of TXR Lisp when the quasiliteral occurs in TXR Lisp, and the rules of the TXR pattern language when the quasiliteral occurs in the pattern language. +Quasliterals can be split into multiple lines in the same way as ordinary +string literals. + .SS Numbers TXR supports integers and floating-point numbers. |