diff options
author | dave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-12-27 18:52:03 +0000 |
---|---|---|
committer | dave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-12-27 18:52:03 +0000 |
commit | bafa8c6a105ca66500bcc29221a073c7255f5994 (patch) | |
tree | 948c3c384324979455009c6648e069bfc9ddd8b3 /lib/rdoc/parsers | |
parent | 9bd40fc3d55eeacb83936b1c6700e91fb6c624f0 (diff) | |
download | ruby-bafa8c6a105ca66500bcc29221a073c7255f5994.tar.gz ruby-bafa8c6a105ca66500bcc29221a073c7255f5994.tar.xz ruby-bafa8c6a105ca66500bcc29221a073c7255f5994.zip |
Fix quoting of method names in regexp
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5324 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rdoc/parsers')
-rw-r--r-- | lib/rdoc/parsers/parse_c.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rdoc/parsers/parse_c.rb b/lib/rdoc/parsers/parse_c.rb index d28ec941e..086a63f4d 100644 --- a/lib/rdoc/parsers/parse_c.rb +++ b/lib/rdoc/parsers/parse_c.rb @@ -360,8 +360,8 @@ module RDoc def find_override_comment(meth_name) comment = nil - puts "Override #{meth_name}" - if @body =~ %r{Document-method:\s#{meth_name}.*?\n((?>.*?\*/))}m + name = Regexp.escape(meth_name) + if @body =~ %r{Document-method:\s#{name}.*?\n((?>.*?\*/))}m comment = $1 end comment |