From 5d5c56234491e823a76265e90287bcebf3fe2d40 Mon Sep 17 00:00:00 2001 From: Oliver Caldwell Date: Sat, 12 Feb 2022 15:00:26 +0000 Subject: [PATCH] Sync Aniseed in-scope? macro change --- lua/conjure/aniseed/macros.fnl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/conjure/aniseed/macros.fnl b/lua/conjure/aniseed/macros.fnl index fa9e3078..6617a035 100644 --- a/lua/conjure/aniseed/macros.fnl +++ b/lua/conjure/aniseed/macros.fnl @@ -196,8 +196,8 @@ ;; Checks surrounding scope for *module* and, if found, makes sure *module* is ;; inserted after `last-expr` (and therefore *module* is returned) (fn wrap-last-expr [last-expr] - (if (rawget (. (get-scope) :symmeta) :*module*) - `(do ,last-expr ,(sym :*module*)) + (if (in-scope? mod-sym) + `(do ,last-expr ,mod-sym) last-expr)) ;; Used by aniseed.compile to wrap the entire body of a file, replacing the