Skip to content

Commit

Permalink
Fix quoting for import.
Browse files Browse the repository at this point in the history
  • Loading branch information
bakpakin committed Jun 16, 2024
1 parent 94b7a69 commit fda0a08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/boot/boot.janet
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fda0a08

Please sign in to comment.