diff options
author | dave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-12-19 15:18:09 +0000 |
---|---|---|
committer | dave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-12-19 15:18:09 +0000 |
commit | 5076ed519b124df90b2348f012d120e25e3820e0 (patch) | |
tree | 1c7739b73b3f358c91d6271f6ee4f33acd12d6cb /lib/rdoc/parsers/parse_c.rb | |
parent | a4874e20ae678606715fb40de8305e4368bd453e (diff) |
Document Class and Dir
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5222 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rdoc/parsers/parse_c.rb')
-rw-r--r-- | lib/rdoc/parsers/parse_c.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/rdoc/parsers/parse_c.rb b/lib/rdoc/parsers/parse_c.rb index 37f13515bd..0cc19d851f 100644 --- a/lib/rdoc/parsers/parse_c.rb +++ b/lib/rdoc/parsers/parse_c.rb @@ -182,10 +182,14 @@ 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 - class_meth.comment = mangle_comment($1) + comment = $1 + elsif @body =~ %r{Document-class:\s#{class_name}.*?\n((?>.*?\*/))}m + comment = $1 end + class_meth.comment = mangle_comment(comment) if comment end def do_classes |