Skip to content

Commit a8c829e

Browse files
committed
[Bug #17398] Allow private def hello = puts "Hello"
1 parent 599f58f commit a8c829e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

parse.y

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4198,6 +4198,11 @@ call_args : value_expr(command)
41984198
$$ = NEW_LIST($1, &@$);
41994199
/*% ripper: args_add!(args_new!, $:1) %*/
42004200
}
4201+
| def_endless_method(endless_command)
4202+
{
4203+
$$ = NEW_LIST($1, &@$);
4204+
/*% ripper: args_add!(args_new!, $:1) %*/
4205+
}
42014206
| args opt_block_arg
42024207
{
42034208
$$ = arg_blk_pass($1, $2);

test/.excludes-parsey/TestSyntax.rb

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)