1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Allow multiple arguments to include

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6270 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
dave 2004-05-07 12:51:18 +00:00
parent 876aa19435
commit 6bb2e55d0c
2 changed files with 13 additions and 4 deletions

View file

@ -1,3 +1,8 @@
Fri May 7 21:50:21 2004 Dave Thomas <dave@pragprog.com>
* lib/rdoc/parsers/parse_rb.rb (RDoc::parse_include): Allow
multiple arguments to 'include'
Fri May 7 21:03:51 2004 Minero Aoki <aamine@loveruby.net>
* lib/fileutils.rb (fu_list): Array() breaks pathes including "\n".

View file

@ -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