diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2018-05-11 06:55:25 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2018-05-11 06:55:25 -0700 |
commit | 78e12d9c43b606f7402100a7c3b3367057d103d9 (patch) | |
tree | 486f65f1faab122d002be6fd3291ce528f2e661b /txr.1 | |
parent | 5bb5391fd3ad9874fdb266dd5b6d57f084626d13 (diff) | |
download | txr-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.1 | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -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 |