summaryrefslogtreecommitdiffstats
path: root/match.c
diff options
context:
space:
mode:
Diffstat (limited to 'match.c')
-rw-r--r--match.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/match.c b/match.c
index 580527e4..839d9e06 100644
--- a/match.c
+++ b/match.c
@@ -495,8 +495,10 @@ static val match_line(val bindings, val specline, val dataline,
val greedy = eq(max, greedy_k);
val last_good_result = nil, last_good_pos = nil;
- if (!rest(specline))
- break;
+ if (!rest(specline)) {
+ debuglf(lit("skip to end of line ~a:~a"), file, data_lineno);
+ return cons(bindings, t);
+ }
{
cnum reps_max = 0, reps_min = 0;