fix redex's syntax pruning to not drop the #%top binding
This commit is contained in:
parent
7c1c0c96c0
commit
977659a118
|
@ -41,7 +41,7 @@
|
|||
stx)]
|
||||
[x
|
||||
(identifier? #'x)
|
||||
(identifier-prune-lexical-context #'x)]
|
||||
(identifier-prune-lexical-context #'x (list (syntax-e #'x) '#%top))]
|
||||
[() (datum->syntax #f '() stx)]
|
||||
[_ (datum->syntax (identifier-prune-lexical-context #'whatever '(#%datum))
|
||||
(syntax->datum stx) stx)]))))
|
||||
|
|
Loading…
Reference in New Issue
Block a user