Issue #9726 has been updated by Nobuyoshi Nakada. Status changed from Open to Closed % Done changed from 0 to 100 Applied in changeset r45637. ---------- parse.y: allow parenthesed do-block in cmdarg * parse.y (primary): flush cmdarg flags inside left-paren in a command argument, to allow parenthesed do-block as an argument without arguments parentheses. [ruby-core:61950] [Bug #9726] ---------------------------------------- Bug #9726: Incorrect Proc parsing https://bugs.ruby-lang.org/issues/9726#change-46252 * Author: Vladimir Smelyansky * Status: Closed * Priority: Normal * Assignee: Yukihiro Matsumoto * Category: syntax * Target version: * ruby -v: ruby 1.9.3p327 (2012-11-10 revision 37606) [x86_64-linux] * Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN ---------------------------------------- There seems to be issue in parsing with white space: The code below works: ~~~ruby proc_issue (Proc.new { |n| "Do something" }) ~~~ That code causing parsing error (removing white space makes it working `proc_issue` (`Proc`..) ~~~ruby proc_issue (Proc.new do |n| "Do something" end) ~~~ -- https://bugs.ruby-lang.org/