summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2014-07-15 20:03:48 -0700
committerKaz Kylheku <kaz@kylheku.com>2014-07-15 20:03:48 -0700
commit9b763824a241ce6345377325c688d8769fc378bd (patch)
tree60d8b96f22408107f3a07722e982119ef9cbda69
parentbe924a2c4e7df457da6eeef5b07d71b0243c9f05 (diff)
downloadtxr-9b763824a241ce6345377325c688d8769fc378bd.tar.gz
txr-9b763824a241ce6345377325c688d8769fc378bd.tar.bz2
txr-9b763824a241ce6345377325c688d8769fc378bd.zip
* match.c (h_eol): Fix broken horizontal @(eol).
It should be returning next_spec_k, rather than bindings, which indicate a complete match.
-rw-r--r--ChangeLog6
-rw-r--r--match.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 84c6b2fe..f7573c2b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2014-07-15 Kaz Kylheku <kaz@kylheku.com>
+ * match.c (h_eol): Fix broken horizontal @(eol).
+ It should be returning next_spec_k, rather
+ than bindings, which indicate a complete match.
+
+2014-07-15 Kaz Kylheku <kaz@kylheku.com>
+
* tests/001/query-1.txr: Remove bogus public domain header.
* tests/001/query-2.txr: Likewise.
diff --git a/match.c b/match.c
index 7a3e06c7..83aac757 100644
--- a/match.c
+++ b/match.c
@@ -1124,7 +1124,7 @@ static val h_eol(match_line_ctx *c)
if (length_str_le(c->dataline, c->pos)) {
LOG_MATCH("eol", c->pos);
- return cons(c->bindings, plus(c->pos, c->base));
+ return next_spec_k;
}
LOG_MISMATCH("eol");
return nil;