From 6bb2e55d0cbf8ac9e6e5d1289ad409b62aaf4822 Mon Sep 17 00:00:00 2001 From: dave Date: Fri, 7 May 2004 12:51:18 +0000 Subject: Allow multiple arguments to include git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6270 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/rdoc/parsers/parse_rb.rb | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'lib/rdoc/parsers/parse_rb.rb') diff --git a/lib/rdoc/parsers/parse_rb.rb b/lib/rdoc/parsers/parse_rb.rb index 1a3874fe24..904475db22 100644 --- a/lib/rdoc/parsers/parse_rb.rb +++ b/lib/rdoc/parsers/parse_rb.rb @@ -2386,10 +2386,14 @@ module RDoc end def parse_include(context, comment) - skip_tkspace_comment - name = get_constant_with_optional_parens - unless name.empty? - context.add_include(Include.new(name, comment)) + loop do + skip_tkspace_comment + name = get_constant_with_optional_parens + unless name.empty? + context.add_include(Include.new(name, comment)) + end + return unless peek_tk.kind_of?(TkCOMMA) + get_tk end end -- cgit v1.2.3