summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authordave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-09-09 02:48:32 +0000
committerdave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-09-09 02:48:32 +0000
commit7610176cdedf44a076a3e2ff0afc946d6f5dd88a (patch)
tree2bea96c8aade5b0d5ec52c42b68866783a89099c /lib
parent134fd51203fe569ff0bb98840dea65a3d9b8d639 (diff)
downloadruby-7610176cdedf44a076a3e2ff0afc946d6f5dd88a.tar.gz
ruby-7610176cdedf44a076a3e2ff0afc946d6f5dd88a.tar.xz
ruby-7610176cdedf44a076a3e2ff0afc946d6f5dd88a.zip
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
Diffstat (limited to 'lib')
-rw-r--r--lib/rdoc/parsers/parse_c.rb4
1 files changed, 2 insertions, 2 deletions
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)