diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | lib/rdoc/parsers/parse_c.rb | 4 |
2 files changed, 7 insertions, 2 deletions
@@ -1,3 +1,8 @@ +Thu Sep 9 11:46:18 2004 Dave Thomas <[email protected]> + + * lib/rdoc/parsers/parse_c.rb (RDoc::C_Parser::do_classes): Allow + spaces aroun parameter to define_method_under (James Buck) + Wed Sep 8 18:44:03 2004 Nobuyoshi Nakada <[email protected]> * ext/stringio/stringio.c (strio_write): zero fill a gap if exsts. diff --git a/lib/rdoc/parsers/parse_c.rb b/lib/rdoc/parsers/parse_c.rb index c42fbb2e11..6c9134fc62 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) |