tree-sitter-fennel
tree-sitter-fennel copied to clipboard
Support for Threading Macros
Threading seems to be broken when there is more than one operation
For example:
(fn c [b] (-> b (+ 1) (/ 2)))
yeilds an error
(list ( (symbol) (symbol)
(list ( (symbol) (number) ))
(list ( (symbol)
(ERROR {)
))
))
whereas
(fn e [b] (-> b (+ 11)))
yeilds something workable
(fn ( fn docstring: (symbol)
(parameters [
(binding (symbol))
])
(list ( (symbol) (symbol)
(list ( (symbol) (number) ))
))
))
I cannot reproduce this at all. Even the second example is kind of weird: how do you get a symbol
as a docstring
? That's literally impossible, only string
matches.
@alexjgriffith can you verify that this occurs on the latest tag?