mirror of
https://github.com/janet-lang/janet
synced 2024-11-28 02:59:54 +00:00
Fix quoting for import.
This commit is contained in:
parent
94b7a69741
commit
fda0a081f5
@ -3077,7 +3077,7 @@
|
|||||||
current environment.``
|
current environment.``
|
||||||
[path & args]
|
[path & args]
|
||||||
(def ps (partition 2 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))
|
(tuple import* (string path) ;argm))
|
||||||
|
|
||||||
(defmacro use
|
(defmacro use
|
||||||
|
Loading…
Reference in New Issue
Block a user