summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2016-11-24 21:22:21 -0800
committerKaz Kylheku <kaz@kylheku.com>2016-11-24 21:22:21 -0800
commit73ea0f18ac4fe02c6521ffe760dd6b67101d64bb (patch)
tree49a91c2389aad92592d5c85f3d9117d4176eac07
parentc3624f86bdd117dc34d410939134407532c1cf01 (diff)
downloadtxr-73ea0f18ac4fe02c6521ffe760dd6b67101d64bb.tar.gz
txr-73ea0f18ac4fe02c6521ffe760dd6b67101d64bb.tar.bz2
txr-73ea0f18ac4fe02c6521ffe760dd6b67101d64bb.zip
bugfix: don't expand @meta syntax as function call.
* eval.c (do_expand): If the form is (sys:var ...) then skip it without expanding. Of course, that does not preclude it form being a macro.
-rw-r--r--eval.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/eval.c b/eval.c
index 4e617f9e..6b1f567f 100644
--- a/eval.c
+++ b/eval.c
@@ -3865,6 +3865,8 @@ static val do_expand(val form, val menv)
return expand(first(args), menv);
} else if (sym == sys_lisp1_value_s) {
return expand_lisp1_value(form, menv);
+ } else if (sym == var_s) {
+ return form;
} else {
/* funtion call
also handles: prog1, call, if, and, or,