mirror of
https://github.com/janet-lang/janet
synced 2025-11-17 07:47:15 +00:00
Fix #477
Make the walk function preserve bracket type, which should fix threading macro behavior when threading into bracketed expressions.
This commit is contained in:
@@ -1141,7 +1141,10 @@
|
||||
:table (walk-dict f form)
|
||||
:struct (table/to-struct (walk-dict f form))
|
||||
:array (walk-ind f form)
|
||||
:tuple (tuple/slice (walk-ind f form))
|
||||
:tuple (let [x (walk-ind f form)]
|
||||
(if (= :parens (tuple/type form))
|
||||
(tuple/slice x)
|
||||
(tuple/brackets ;x)))
|
||||
form))
|
||||
|
||||
(undef walk-ind)
|
||||
|
||||
Reference in New Issue
Block a user