diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-12-14 14:50:42 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-12-14 14:50:42 +0000 |
commit | 55c4223064cf7dbaa5a05dab784dc226d34b2b8a (patch) | |
tree | 6cd216ecf58fd4b931efafe92982e2478f6de78d /lib | |
parent | 8e4090f4b5ad8363120df6853b47e1231666a26c (diff) | |
download | ruby-55c4223064cf7dbaa5a05dab784dc226d34b2b8a.tar.gz |
* lib/rdoc/parsers/parse_c.rb (find_class_comment): fix for class
document with prototypes. [ruby-core:06863]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9690 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rdoc/parsers/parse_c.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rdoc/parsers/parse_c.rb b/lib/rdoc/parsers/parse_c.rb index e6c18cb0ff..89d36c6c50 100644 --- a/lib/rdoc/parsers/parse_c.rb +++ b/lib/rdoc/parsers/parse_c.rb @@ -262,7 +262,7 @@ module RDoc def find_class_comment(class_name, class_meth) comment = nil if @body =~ %r{((?>/\*.*?\*/\s+)) - (static\s+)?void\s+Init_#{class_name}\s*\(\)}xmi + (static\s+)?void\s+Init_#{class_name}\s*(?:_\(\s*)?\(\s*(?:void\s*)\)}xmi comment = $1 elsif @body =~ %r{Document-(class|module):\s#{class_name}\s*?\n((?>.*?\*/))}m comment = $2 |