tree-sitter / tree-sitter-ruby

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

Anonymous (hash) splat arguments #233

Closed aibaars closed 1 year ago

aibaars commented 1 year ago

From Ruby 3.2 release notes

Anonymous rest and keyword rest arguments can now be passed as arguments, instead of just used in method parameters. [Feature #18351]

 def foo(*)
   bar(*)
 end
 def baz(**)
   quux(**)
 end

This PR also upgrade the node-gyp version to solve a CI failure on the latest version of OSX: https://github.com/tree-sitter/tree-sitter-ruby/actions/runs/3873495109/jobs/6603577164

Checklist:

hendrikvanantwerpen commented 1 year ago

@aibaars I went ahead and merged this, as I wasn't sure if you could do that yourself.