Actions
Bug #17431
closedparen_nest is not reset in parse.y after "foo.[]= value"
Bug #17431:
paren_nest is not reset in parse.y after "foo.[]= value"
Description
p->lex.paren_nest is equal to 1 after the following code:
self.[]= foo
paren_nest is used to differentiate ... for ranges/forwarded arguments, and so ./miniruby -we 'foo.[]= bar, ...' gives no ... at EOL, should be parenthesized? warning (./miniruby -we 'foo.x= bar, ...' does).
Also it's used to differentiate kDO vs kDO_LAMBDA, so I believe there are code samples with lambdas and .[]= calls that can't be handled by Ruby but are technically valid.
Actions