summaryrefslogtreecommitdiffstats
path: root/match.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2009-11-03 05:35:07 -0800
committerKaz Kylheku <kaz@kylheku.com>2009-11-03 05:35:07 -0800
commit97ff23270fa304123ee11ddb773eba68ce8fd223 (patch)
tree327568a0085898b36efb76322743f12927ea8be2 /match.c
parent147e139309408e4d2f0ceb9d35b9de114690ffce (diff)
downloadtxr-97ff23270fa304123ee11ddb773eba68ce8fd223.tar.gz
txr-97ff23270fa304123ee11ddb773eba68ce8fd223.tar.bz2
txr-97ff23270fa304123ee11ddb773eba68ce8fd223.zip
Change the freeform line catenation semantics to termination
rather than separation.
Diffstat (limited to 'match.c')
-rw-r--r--match.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/match.c b/match.c
index 08065af1..3df2c08a 100644
--- a/match.c
+++ b/match.c
@@ -993,10 +993,10 @@ repeat_spec_same_data:
} else {
obj_t *limit = or2(if2(nump(first(vals)), first(vals)),
if2(nump(second(vals)), second(vals)));
- obj_t *sep = or2(if2(stringp(first(vals)), first(vals)),
- if2(stringp(second(vals)), second(vals)));
+ obj_t *term = or2(if2(stringp(first(vals)), first(vals)),
+ if2(stringp(second(vals)), second(vals)));
obj_t *ff_specline = rest(first(spec));
- obj_t *ff_dataline = lazy_str(data, sep, limit);
+ obj_t *ff_dataline = lazy_str(data, term, limit);
cons_bind (new_bindings, success,
match_line(bindings, ff_specline, ff_dataline, zero,