Used new #:context variant (list symbol stx) for the error messages for , as per samth's suggestion.

This commit is contained in:
Georges Dupéron 2015-09-16 15:10:42 +02:00
parent 525b04b74e
commit 1e99d29be4

View File

@ -203,7 +203,7 @@ the typed racket language.
(let ([mk (lambda (form)
(lambda (stx)
(syntax-parse stx
#:context (datum->syntax stx `(,form) stx stx)
#:context (list (syntax-e form) stx)
[(_ (bs:optionally-annotated-binding ...) . body)
(quasisyntax/loc stx (#,form (bs.binding ...) . body))])))])
(values (mk #'let) (mk #'let*) (mk #'letrec))))