From fda0a081f59c03d851658bf8f6d12371631f08f1 Mon Sep 17 00:00:00 2001 From: Calvin Rose Date: Sun, 16 Jun 2024 10:57:14 -0500 Subject: [PATCH] Fix quoting for import. --- src/boot/boot.janet | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/boot/boot.janet b/src/boot/boot.janet index f04ee01a5..66f9ff9e6 100644 --- a/src/boot/boot.janet +++ b/src/boot/boot.janet @@ -3077,7 +3077,7 @@ current environment.`` [path & args] (def ps (partition 2 args)) - (def argm (mapcat (fn [[k v]] [k (if (= k :as) (string v) v)]) ps)) + (def argm (mapcat (fn [[k v]] [k (case k :as (string v) :only ~(quote ,v) v)]) ps)) (tuple import* (string path) ;argm)) (defmacro use