diff options
| author | dave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-12-27 15:50:03 +0000 |
|---|---|---|
| committer | dave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-12-27 15:50:03 +0000 |
| commit | 43148c7882f06abf54af1575db0e4b962b399013 (patch) | |
| tree | f29d53de127bcdf9d144454a7bf3e9ae1c741424 /lib/rdoc | |
| parent | 93ef36925ddee6277468c5d807614cf578f3a68f (diff) | |
| download | ruby-43148c7882f06abf54af1575db0e4b962b399013.tar.gz ruby-43148c7882f06abf54af1575db0e4b962b399013.tar.xz ruby-43148c7882f06abf54af1575db0e4b962b399013.zip | |
Some Ruby source uses Init_xxx (lower case for the class name)
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5320 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rdoc')
| -rw-r--r-- | lib/rdoc/parsers/parse_c.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/rdoc/parsers/parse_c.rb b/lib/rdoc/parsers/parse_c.rb index 83fd3a020..26b3ae4b5 100644 --- a/lib/rdoc/parsers/parse_c.rb +++ b/lib/rdoc/parsers/parse_c.rb @@ -185,7 +185,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*\(\)}xm + (static\s+)?void\s+Init_#{class_name}\s*\(\)}xmi comment = $1 elsif @body =~ %r{Document-(class|module):\s#{class_name}.*?\n((?>.*?\*/))}m comment = $2 @@ -332,6 +332,8 @@ module RDoc meth_obj.add_token(RubyToken::Token.new(1,1).set_text(body_text)) meth_obj.comment = mangle_comment(comment) + else + $stderr.puts "No definition for #{meth_name}" end end |
