summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2012-03-13 20:40:52 -0700
committerKaz Kylheku <kaz@kylheku.com>2012-03-13 20:40:52 -0700
commitbe33de3909100a204726cdde52bf6077e890ca6d (patch)
treed537148eb4b152d1ab95065ca71a2833769a9483
parent7864acb3e7baaed37356562b7d74259d0cfa1d17 (diff)
downloadtxr-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--ChangeLog7
-rw-r--r--parser.l2
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 09356ae7..f94493b8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
diff --git a/parser.l b/parser.l
index 732e2ce0..98a243ec 100644
--- a/parser.l
+++ b/parser.l
@@ -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]