From 881d8ed78ad32af691f4a2ac292c575ec60cb301 Mon Sep 17 00:00:00 2001 From: dave Date: Fri, 19 Dec 2003 15:18:09 +0000 Subject: Document Class and Dir git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5222 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/rdoc/parsers/parse_c.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/rdoc') diff --git a/lib/rdoc/parsers/parse_c.rb b/lib/rdoc/parsers/parse_c.rb index 37f13515b..0cc19d851 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 -- cgit