fix splicing-syntax-parameterize with begin (patch from Stevie) --- should be merged to 4.1.4

svn: r13187
This commit is contained in:
Matthew Flatt 2009-01-17 12:27:06 +00:00
parent e54e5cf6d6
commit c33a201c43

View File

@ -118,9 +118,12 @@
#f)])
;; Extract expanded body out of `body':
(syntax-case body (quote)
[(ls _ _ (quoute body))
[(ls _ _ (quote body))
(let ([body #'body])
(syntax-case body (begin define-values define-syntaxes define-for-syntaxes)
[(begin expr ...)
(syntax/loc body
(begin (expand-ssp-body (sp-id ...) (temp-id ...) expr) ...))]
[(define-values (id ...) rhs)
(syntax/loc body
(define-values (id ...)