tree-sitter-fennel icon indicating copy to clipboard operation
tree-sitter-fennel copied to clipboard

Support for Threading Macros

Open alexjgriffith opened this issue 2 years ago • 2 comments

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) ))
  ))
 ))

alexjgriffith avatar Dec 02 '22 22:12 alexjgriffith

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.

otommod avatar Dec 30 '22 17:12 otommod

@alexjgriffith can you verify that this occurs on the latest tag?

TravonteD avatar Feb 02 '24 14:02 TravonteD