From 7610176cdedf44a076a3e2ff0afc946d6f5dd88a Mon Sep 17 00:00:00 2001 From: dave Date: Thu, 9 Sep 2004 02:48:32 +0000 Subject: Allow spaces around parameter to define_method_under git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6874 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/rdoc/parsers/parse_c.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/rdoc/parsers/parse_c.rb b/lib/rdoc/parsers/parse_c.rb index c42fbb2e1..6c9134fc6 100644 --- a/lib/rdoc/parsers/parse_c.rb +++ b/lib/rdoc/parsers/parse_c.rb @@ -271,11 +271,11 @@ module RDoc handle_class_module(var_name, "class", class_name, parent, nil) end - @body.scan(/(\w+)\s* = \s*rb_define_module_under + @body.scan(/(\w+)\s* = \s*rb_define_module_under\s* \( \s*(\w+), \s*"(\w+)" - \)/mx) do + \s*\)/mx) do |var_name, in_module, class_name| handle_class_module(var_name, "module", class_name, nil, in_module) -- cgit