diff options
author | dave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-05-07 13:14:58 +0000 |
---|---|---|
committer | dave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-05-07 13:14:58 +0000 |
commit | 3dbd32a2144af170378d0b5713a828dad6c976fb (patch) | |
tree | 9403f0e2cd6d88f9accdb2beca77adca07893c38 /lib/rdoc | |
parent | 6d84972bd5c944188cb02ccf24a763893fe20357 (diff) |
Allow multiple arguments to include
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6272 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rdoc')
-rw-r--r-- | lib/rdoc/parsers/parse_rb.rb | 12 |
1 files changed, 8 insertions, 4 deletions
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 |