Fix the syntactic context.
https://racket.discourse.group/t/wrap-a-macro-injecting-bindings-in-another-macro/1406/2
This commit is contained in:
parent
fabecbe0f9
commit
6dce7583ab
1 changed files with 1 additions and 1 deletions
|
@ -126,7 +126,7 @@
|
||||||
(define colons (collect-colons (syntax->datum stx)))
|
(define colons (collect-colons (syntax->datum stx)))
|
||||||
(define bindings (for/list ([key colons])
|
(define bindings (for/list ([key colons])
|
||||||
`[,key (hash-ref ,#'ht ',(strip-colon key))]))
|
`[,key (hash-ref ,#'ht ',(strip-colon key))]))
|
||||||
(with-syntax ([bindings-stx (datum->syntax stx bindings)])
|
(with-syntax ([bindings-stx (datum->syntax #'ht bindings)])
|
||||||
#'(let bindings-stx body))]))
|
#'(let bindings-stx body))]))
|
||||||
|
|
||||||
(module+ test
|
(module+ test
|
||||||
|
|
Loading…
Reference in a new issue