summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2016-09-22 21:36:22 -0700
committerKaz Kylheku <kaz@kylheku.com>2016-09-22 21:36:22 -0700
commit93e3d055337822ceff671710ea0611e3bbf46ae2 (patch)
tree8f94bd8d219c29db9ba1304bb2b97e6f6643ab61 /tests
parent0bd7556d869f0038a5bf58fff41ccbed891d150d (diff)
downloadtxr-93e3d055337822ceff671710ea0611e3bbf46ae2.tar.gz
txr-93e3d055337822ceff671710ea0611e3bbf46ae2.tar.bz2
txr-93e3d055337822ceff671710ea0611e3bbf46ae2.zip
Semantics change in match-regex-right.
The way the end-position argument works in match-regex-right and match-regst-right is poorly considered. It basically enforces a constraint that there is a match which ends at that position and does not go beyond. This patch changes it work right: the functions test that the regex matches up to that position, as if the string ended there. * regex.c (match_regex_right_old): New static function, identical to the previous match_regex_right. Since we won't ever be using this inside TXR from any other module, we don't make it external. (match_regex_right): Rewritten to new semantics. (match_regst_right_old): New static function; provides the semantics of the old match_regst_right based on match_regex_right_old. (regex_init): Register match-regex-right and match-regst-right intrinsics to the match_regex_right_old and match_regst_right_old functions if compatibility <= 150 is requested. Otherwise they go to the rewritten new functions. * txr.1: Documentation updated, and compat notes added.
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions