Skip to content

Commit de9b7e2

Browse files
committed
+ Fix to pass test_lambda_args_block__19 test. (mrmargolis)
[git-p4: depot-paths = "//src/ruby_parser/dev/": change = 6851]
1 parent 45131d7 commit de9b7e2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/ruby19_parser.y

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1213,6 +1213,11 @@ rule
12131213
result = val[1]
12141214
self.lexer.command_start = true
12151215
}
1216+
| tPIPE tAMPER block_var tPIPE
1217+
{
1218+
result = s(:lasgn, :"&block")
1219+
self.lexer.command_start = true
1220+
}
12161221

12171222
do_block: kDO_BLOCK
12181223
{

0 commit comments

Comments
 (0)