summaryrefslogtreecommitdiffstats
path: root/txr.1
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2012-02-25 15:51:43 -0800
committerKaz Kylheku <kaz@kylheku.com>2012-02-25 15:51:43 -0800
commitcb0c0a6144346521d6cf3b02703ba15f67b9b4f3 (patch)
treee023920384a808a8b412f7e524bb5767e42e9724 /txr.1
parentd3069e9fabe241d6f6c3bc659902e4191bfd5e08 (diff)
downloadtxr-cb0c0a6144346521d6cf3b02703ba15f67b9b4f3.tar.gz
txr-cb0c0a6144346521d6cf3b02703ba15f67b9b4f3.tar.bz2
txr-cb0c0a6144346521d6cf3b02703ba15f67b9b4f3.zip
* parser.l (num_esc): Skip octal indicator 'o' if present.
This is needed for character constants. (CHRLIT): Fix broken hex constants, being treated as octal. * txr.1: Document octal character constants.
Diffstat (limited to 'txr.1')
-rw-r--r--txr.17
1 files changed, 4 insertions, 3 deletions
diff --git a/txr.1 b/txr.1
index 7adeee9b..275a6e8a 100644
--- a/txr.1
+++ b/txr.1
@@ -1033,9 +1033,10 @@ useful for labeling information and situations.
Character literals are introduced by the #\e syntax, which is either
followed by a character name, the letter x followed by hex digits,
-or a single character. Valid character names are: nul, alarm, backspace, tab,
-linefeed, newline, vtab, page, return, esc, space. This convention
-for character literals is similar to that of the Scheme language.
+the letter o followed by octal digits, or a single character. Valid character
+names are: nul, alarm, backspace, tab, linefeed, newline, vtab, page, return,
+esc, space. This convention for character literals is similar to that of the
+Scheme language.
.SS String Literals