We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Olical
Learn more about funding links in repositories.
Report abuse
1 parent 5bc26ea commit 5d5c562Copy full SHA for 5d5c562
lua/conjure/aniseed/macros.fnl
@@ -196,8 +196,8 @@
196
;; Checks surrounding scope for *module* and, if found, makes sure *module* is
197
;; inserted after `last-expr` (and therefore *module* is returned)
198
(fn wrap-last-expr [last-expr]
199
- (if (rawget (. (get-scope) :symmeta) :*module*)
200
- `(do ,last-expr ,(sym :*module*))
+ (if (in-scope? mod-sym)
+ `(do ,last-expr ,mod-sym)
201
last-expr))
202
203
;; Used by aniseed.compile to wrap the entire body of a file, replacing the
0 commit comments