summaryrefslogtreecommitdiffstats
path: root/txr.1
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2018-05-11 06:55:25 -0700
committerKaz Kylheku <kaz@kylheku.com>2018-05-11 06:55:25 -0700
commit78e12d9c43b606f7402100a7c3b3367057d103d9 (patch)
tree486f65f1faab122d002be6fd3291ce528f2e661b /txr.1
parent5bb5391fd3ad9874fdb266dd5b6d57f084626d13 (diff)
downloadtxr-78e12d9c43b606f7402100a7c3b3367057d103d9.tar.gz
txr-78e12d9c43b606f7402100a7c3b3367057d103d9.tar.bz2
txr-78e12d9c43b606f7402100a7c3b3367057d103d9.zip
Allow Unicode characters in identifiers.
* parser.l (unicode_ident): New static function. (BSCHR, NSCHR): Include UONLY match. (grammar): Use unicode_ident function to validate tokens obtained from BTOK and NTOK. * txr.1: Documented changing definition of bident and lident.
Diffstat (limited to 'txr.1')
-rw-r--r--txr.114
1 files changed, 13 insertions, 1 deletions
diff --git a/txr.1 b/txr.1
index b8472938..3ad47907 100644
--- a/txr.1
+++ b/txr.1
@@ -1782,6 +1782,13 @@ which are not allowed in a
! $ % & * + - < = > ? \e ~
.cble
+Moreover, most Unicode characters beyond U+007F may appear in a
+.metn bident ,
+with certain exceptions. A character may not be used if it is any of the
+Unicode space characters, a member of the high or low surrogate region,
+a member of any Unicode private use area, or is one of the two characters
+U+FFFE or U+FFFF.
+
The rule still holds that a name cannot look like a number so
.code +123
is not a valid
@@ -10825,7 +10832,12 @@ underscores:
and of course, may not look like a number.
-The character allowed in a
+A
+.meta lident
+may also include all of the Unicode characters which are permitted in a
+.metn bident .
+
+The one character which is allowed in a
.meta lident
but not in a
.meta bident