tree-sitter / tree-sitter-ruby

Ruby grammar for tree-sitter
MIT License
173 stars 58 forks source link

Parse error in anonymous block arguments #244

Open hmac opened 10 months ago

hmac commented 10 months ago

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 10 months ago

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