File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -2306,7 +2306,12 @@ def visit_rescue_node(node)
2306
2306
when 0
2307
2307
nil
2308
2308
when 1
2309
- [ visit ( node . exceptions . first ) ]
2309
+ if ( exception = node . exceptions . first ) . is_a? ( SplatNode )
2310
+ bounds ( exception . location )
2311
+ on_mrhs_add_star ( on_mrhs_new , visit ( exception ) )
2312
+ else
2313
+ [ visit ( node . exceptions . first ) ]
2314
+ end
2310
2315
else
2311
2316
bounds ( node . location )
2312
2317
length = node . exceptions . length
Original file line number Diff line number Diff line change @@ -57,7 +57,6 @@ class RipperTest < TestCase
57
57
]
58
58
59
59
skips = incorrect | heredocs | %w[
60
- rescue.txt
61
60
seattlerb/TestRubyParserShared.txt
62
61
seattlerb/block_call_dot_op2_brace_block.txt
63
62
seattlerb/block_command_operation_colon.txt
You can’t perform that action at this time.
0 commit comments