mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-07-05 04:06:36 +02:00
Fixing ellipsis escapes in syntax-rules templates.
This commit is contained in:
parent
afc6a96d68
commit
92cae4e8b8
1 changed files with 4 additions and 3 deletions
|
@ -772,9 +772,10 @@
|
|||
((pair? t)
|
||||
(cond
|
||||
((ellipse-escape? t)
|
||||
(if (pair? (cdr t))
|
||||
(if (pair? (cddr t)) (cddr t) (cadr t))
|
||||
(cdr t)))
|
||||
(list _quote
|
||||
(if (pair? (cdr t))
|
||||
(if (pair? (cddr t)) (cddr t) (cadr t))
|
||||
(cdr t))))
|
||||
((ellipse? t)
|
||||
(let* ((depth (ellipse-depth t))
|
||||
(ell-dim (+ dim depth))
|
||||
|
|
Loading…
Add table
Reference in a new issue