fix bug with list-rest in quasi-patterns

This commit is contained in:
Sam Tobin-Hochstadt 2006-09-06 14:26:19 -04:00
parent 3a77f5a914
commit 6034e5e0d5

View File

@ -72,7 +72,7 @@
"unquote-splicing not followed by list")))]
[,@p
(if (and (stx-list? (syntax p))
(eq? (syntax-e (car (syntax->list #'p))) 'list))
(memq (syntax-e (car (syntax->list #'p))) '(list list-rest)))
(cdr (syntax->list (syntax p)))
(begin ; (write (syntax-e (syntax p)))
(q-error (syntax ,@p)