Skip to content

Commit 5d5c562

Browse files
committedFeb 12, 2022
Sync Aniseed in-scope? macro change
1 parent 5bc26ea commit 5d5c562

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎lua/conjure/aniseed/macros.fnl

+2-2
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,8 @@
196196
;; Checks surrounding scope for *module* and, if found, makes sure *module* is
197197
;; inserted after `last-expr` (and therefore *module* is returned)
198198
(fn wrap-last-expr [last-expr]
199-
(if (rawget (. (get-scope) :symmeta) :*module*)
200-
`(do ,last-expr ,(sym :*module*))
199+
(if (in-scope? mod-sym)
200+
`(do ,last-expr ,mod-sym)
201201
last-expr))
202202

203203
;; Used by aniseed.compile to wrap the entire body of a file, replacing the

0 commit comments

Comments
 (0)
Please sign in to comment.