mirror of
https://github.com/janet-lang/janet
synced 2024-12-01 04:19:55 +00:00
Fix #550 - add varfn to safe forms for flycheck.
This commit is contained in:
parent
dd2595c53f
commit
f206b476d1
@ -3172,7 +3172,7 @@
|
|||||||
|
|
||||||
(defn- is-safe-def [x] (no-side-effects (last x)))
|
(defn- is-safe-def [x] (no-side-effects (last x)))
|
||||||
|
|
||||||
(def- safe-forms {'defn true 'defn- true 'defmacro true 'defmacro- true
|
(def- safe-forms {'defn true 'varfn true 'defn- true 'defmacro true 'defmacro- true
|
||||||
'def is-safe-def 'var is-safe-def 'def- is-safe-def 'var- is-safe-def
|
'def is-safe-def 'var is-safe-def 'def- is-safe-def 'var- is-safe-def
|
||||||
'defglobal is-safe-def 'varglobal is-safe-def})
|
'defglobal is-safe-def 'varglobal is-safe-def})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user