summaryrefslogtreecommitdiffstats
path: root/lib/rdoc
diff options
context:
space:
mode:
authordave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-12-19 15:18:09 +0000
committerdave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-12-19 15:18:09 +0000
commit881d8ed78ad32af691f4a2ac292c575ec60cb301 (patch)
tree1c7739b73b3f358c91d6271f6ee4f33acd12d6cb /lib/rdoc
parent093ecdf95dba992e8afb616870874a4c455962e1 (diff)
downloadruby-881d8ed78ad32af691f4a2ac292c575ec60cb301.tar.gz
ruby-881d8ed78ad32af691f4a2ac292c575ec60cb301.tar.xz
ruby-881d8ed78ad32af691f4a2ac292c575ec60cb301.zip
Document Class and Dir
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5222 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rdoc')
-rw-r--r--lib/rdoc/parsers/parse_c.rb6
1 files changed, 5 insertions, 1 deletions
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