diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2021-02-08 07:06:30 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2021-02-08 07:06:30 -0800 |
commit | c8d581648431d6df4cc1db9e87a1ad1306aeddb8 (patch) | |
tree | 52d1630fe483601db7bce3b8dd9ddcb097974625 /tests/010/align-columns.dat | |
parent | de6ced80888ed410aa96729879921b5dc5066a51 (diff) | |
download | txr-c8d581648431d6df4cc1db9e87a1ad1306aeddb8.tar.gz txr-c8d581648431d6df4cc1db9e87a1ad1306aeddb8.tar.bz2 txr-c8d581648431d6df4cc1db9e87a1ad1306aeddb8.zip |
matcher: fix backreferencing in predicate.
* share/txr/stdlib/match.tl (compile-predicate-match): Always
allocate res-var as a gensym; do not use resvar. Otherwise we
will freshly bind resvar as a local, failing to back-reference.
* tests/011/patmatch.tl: Add test cases, the second of which
fails before this change.
Diffstat (limited to 'tests/010/align-columns.dat')
0 files changed, 0 insertions, 0 deletions