summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authordave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-12-27 15:50:03 +0000
committerdave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-12-27 15:50:03 +0000
commit339aae6c804f5a7ef4c6d8df61024187a65e4770 (patch)
tree241053aaa7bee6485584b5f5fe3a3de5dd973713 /lib
parent8d224e0a3357659aceef145916536dfea71d17d8 (diff)
downloadruby-339aae6c804f5a7ef4c6d8df61024187a65e4770.tar.gz
ruby-339aae6c804f5a7ef4c6d8df61024187a65e4770.tar.xz
ruby-339aae6c804f5a7ef4c6d8df61024187a65e4770.zip
Some Ruby source uses Init_xxx (lower case for the class name)
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@5320 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/rdoc/parsers/parse_c.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rdoc/parsers/parse_c.rb b/lib/rdoc/parsers/parse_c.rb
index 83fd3a020..63da84ad9 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