whitequark / parser

A Ruby parser.
Other
1.59k stars 199 forks source link

+ ruby31.y: allow "command" syntax in endless method definition #801

Closed koic closed 3 years ago

koic commented 3 years ago

Fixes https://github.com/whitequark/parser/issues/799.

iliabylich commented 3 years ago

@koic could you also backport tests for command kRESCUE_MOD arg cases please? I'm talking about these guys.

Also this new syntax is a pure hack, def foo = bar baz is a command assignment that is reduced in a different way 🔥

koic commented 3 years ago

Thank you for your review. I've added missing backporting tests.

iliabylich commented 3 years ago

@koic thanks!