Method: RDoc::Parser::Ruby#parse_rescue

Defined in:
lib/rdoc/parser/ruby.rb

#parse_rescueObject

Parses a rescue



1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
# File 'lib/rdoc/parser/ruby.rb', line 1707

def parse_rescue
  skip_tkspace_without_nl

  while tk = get_tk
    case tk[:kind]
    when :on_nl, :on_semicolon, :on_comment then
      break
    when :on_comma then
      skip_tkspace_without_nl

      get_tk if :on_nl == peek_tk[:kind]
    end

    skip_tkspace_without_nl
  end
end