tree-sitter/tree-sitter-ruby

Parse error in anonymous block arguments

hmac opened this issue · 1 comments

hmac commented

A minimal test case:

def foo(&)
  foo(a, &
  )
end

It seems that when there is a newline between an anonymous block argument and the closing ), the parser fails.

hmac commented

Having investigated this a bit, I believe it may be a duplicate of #218