summaryrefslogtreecommitdiffstats
path: root/tests/common.tl
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2022-01-18 07:50:17 -0800
committerKaz Kylheku <kaz@kylheku.com>2022-01-18 07:50:17 -0800
commit3bcad308dba9cbe1ee6e66fc405e479c29992567 (patch)
tree8b150d021e727e980b6b38e634f23b5efd74a355 /tests/common.tl
parentfbe8228a05d169c539cd36218b466e5d298923ba (diff)
downloadtxr-3bcad308dba9cbe1ee6e66fc405e479c29992567.tar.gz
txr-3bcad308dba9cbe1ee6e66fc405e479c29992567.tar.bz2
txr-3bcad308dba9cbe1ee6e66fc405e479c29992567.zip
quasiquote: make new @,expr work in dot position.
Bugfix: the newly introduced @.expr fails in the dotted position because ^(a . @,expr) turns into (list 'a 'let ...). * eval.c (is_meta_unquote): New static function. (expand_qquote_rec): Replace existing shape test with is_meta_unquote. We must also use this test in one more place: whenever the cdr of a list has the meta unquote shape, we must treat the result similarly to a dotted atom, by converting to append format. * tests/010/qquote.tl: Test cases to cover this.
Diffstat (limited to 'tests/common.tl')
0 files changed, 0 insertions, 0 deletions