fix redex's syntax pruning to not drop the #%top binding

This commit is contained in:
Robby Findler 2012-02-01 11:15:33 -06:00
parent 7c1c0c96c0
commit 977659a118

View File

@ -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)]))))