summaryrefslogtreecommitdiffstats
path: root/match.c
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 /match.c
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.
Diffstat (limited to 'match.c')
-rw-r--r--match.c2
1 files changed, 1 insertions, 1 deletions
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;