diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2012-03-13 20:40:52 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2012-03-13 20:40:52 -0700 |
commit | be33de3909100a204726cdde52bf6077e890ca6d (patch) | |
tree | d537148eb4b152d1ab95065ca71a2833769a9483 | |
parent | 7864acb3e7baaed37356562b7d74259d0cfa1d17 (diff) | |
download | txr-be33de3909100a204726cdde52bf6077e890ca6d.tar.gz txr-be33de3909100a204726cdde52bf6077e890ca6d.tar.bz2 txr-be33de3909100a204726cdde52bf6077e890ca6d.zip |
* parser.l (ID_END): Bugfix: ID_END was defined incorrectly
for the current way in which an identifier token is recognized.
As a result @(collect-ing) was being interpreted as @(collect -ing).
It should be the complement of NSCHR.
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | parser.l | 2 |
2 files changed, 8 insertions, 1 deletions
@@ -1,5 +1,12 @@ 2012-03-13 Kaz Kylheku <kaz@kylheku.com> + * parser.l (ID_END): Bugfix: ID_END was defined incorrectly + for the current way in which an identifier token is recognized. + As a result @(collect-ing) was being interpreted as @(collect -ing). + It should be the complement of NSCHR. + +2012-03-13 Kaz Kylheku <kaz@kylheku.com> + * regex.c (regsub): the replacement argument can now be a function of one argument which maps the original piece of text matched by the regex @@ -153,12 +153,12 @@ NUM [+\-]?[0-9]+ BSCHR [a-zA-Z0-9!$%&*+\-<=>?\\^_~] BSYM {BSCHR}({BSCHR}|#)* NSCHR [a-zA-Z0-9!$%&*+\-<=>?\\^_~/] +ID_END [^a-zA-Z0-9!$%&*+\-<=>?\\^_~/] NSYM {NSCHR}({NSCHR}|#)* TOK :?{SYM} ATNUM @{NUM} BTOK [:@]?{BSYM} NTOK [:@]?{NSYM} -ID_END [^a-zA-Z0-9_] WS [\t ]* HEX [0-9A-Fa-f] OCT [0-7] |