Fixing ellipsis escapes in syntax-rules templates.

This commit is contained in:
Alex Shinn 2011-03-02 00:33:24 +09:00
parent afc6a96d68
commit 92cae4e8b8

View file

@ -772,9 +772,10 @@
((pair? t) ((pair? t)
(cond (cond
((ellipse-escape? t) ((ellipse-escape? t)
(list _quote
(if (pair? (cdr t)) (if (pair? (cdr t))
(if (pair? (cddr t)) (cddr t) (cadr t)) (if (pair? (cddr t)) (cddr t) (cadr t))
(cdr t))) (cdr t))))
((ellipse? t) ((ellipse? t)
(let* ((depth (ellipse-depth t)) (let* ((depth (ellipse-depth t))
(ell-dim (+ dim depth)) (ell-dim (+ dim depth))