summaryrefslogtreecommitdiffstats
path: root/tests/common.tl
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2021-12-27 06:36:20 -0800
committerKaz Kylheku <kaz@kylheku.com>2021-12-27 06:36:20 -0800
commit8ccf4c0a9076c957a5ed58f6ccc6ede7f71644a3 (patch)
tree0ef77b6b799ca817f6e867dce88da8ee0fc5f09b /tests/common.tl
parent4500f9d53feea9205c4c30743bb99e3a5f15703d (diff)
downloadtxr-8ccf4c0a9076c957a5ed58f6ccc6ede7f71644a3.tar.gz
txr-8ccf4c0a9076c957a5ed58f6ccc6ede7f71644a3.tar.bz2
txr-8ccf4c0a9076c957a5ed58f6ccc6ede7f71644a3.zip
txr: function span variable must match existing value.
* match.c (h_var_compat): New function; verbatim copy of existing h_var prior to this commit. (h_var): If a variable has an existing binding, but is a function spanning match, do not substitute it with text. Handle it with the ordinary case, in which we now use dest_bind instead of cons. (v_var): Similarly, here, we must also use dest_bind, rather than always freshly binding the variable. (match_compat_fixup): For 272 compatibility, substitute h_var_compat for h_var in the horizontal directive table. * tests/010/span-var.txr: New test cases. * txr.1: Documentation updated and also improved overall. The behavior when a variable has an existing value is clarified for the regex and fixed field case. Also update and condense compat notes for 272.
Diffstat (limited to 'tests/common.tl')
0 files changed, 0 insertions, 0 deletions