Fixing unquote-splicing in srfi-38.

This commit is contained in:
Alex Shinn 2012-11-03 23:37:41 +09:00
parent 90856b8de2
commit 195cbeca6d

View file

@ -344,10 +344,10 @@
((#\`) (read-char in) (list 'quasiquote (read-one)))
((#\,)
(read-char in)
(list (if (eqv? #\@ (peek-char in))
(let ((sym (if (eqv? #\@ (peek-char in))
(begin (read-char in) 'unquote-splicing)
'unquote)
(read-one)))
'unquote)))
(list sym (read-one))))
(else
(read in))))
;; body