We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e94579a commit b612856Copy full SHA for b612856
lib/rdoc/parser/ruby.rb
@@ -1588,6 +1588,7 @@ def parse_require(context, comment)
1588
def parse_rescue
1589
skip_tkspace false
1590
1591
+ nest = 0
1592
while tk = get_tk
1593
case tk
1594
when TkNL, TkSEMICOLON then
@@ -1596,6 +1597,11 @@ def parse_rescue
1596
1597
1598
1599
get_tk if TkNL === peek_tk
1600
+ when TkLPAREN, TkfLPAREN then
1601
+ nest += 1
1602
+ when TkRPAREN then
1603
+ nest -= 1
1604
+ break if nest < 0
1605
end
1606
1607
0 commit comments