mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-07-05 12:16:37 +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)
|
((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))
|
||||||
|
|
Loading…
Add table
Reference in a new issue