summaryrefslogtreecommitdiffstats
path: root/lib/rdoc/parsers/parse_c.rb
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-01-19 14:05:55 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-01-19 14:05:55 +0000
commit16c66c9f9b98f6b17f84069187087954261bd4da (patch)
treef894968871b02ec1fb715db730d5d627b2901b64 /lib/rdoc/parsers/parse_c.rb
parente9660a62ceee312dc297c55614410eda52d3d34f (diff)
downloadruby-16c66c9f9b98f6b17f84069187087954261bd4da.tar.gz
ruby-16c66c9f9b98f6b17f84069187087954261bd4da.tar.xz
ruby-16c66c9f9b98f6b17f84069187087954261bd4da.zip
* lib/rdoc/parsers/parse_c.rb: escape '{' and '}' to avoid warnings.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5505 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rdoc/parsers/parse_c.rb')
-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 b1b752222..d491e3d88 100644
--- a/lib/rdoc/parsers/parse_c.rb
+++ b/lib/rdoc/parsers/parse_c.rb
@@ -351,7 +351,7 @@ module RDoc
# see if we can find the whole body
- re = Regexp.escape(body_text) + "[^(]*^{.*?^}"
+ re = Regexp.escape(body_text) + '[^(]*^\{.*?^\}'
if Regexp.new(re, Regexp::MULTILINE).match(body)
body_text = $&
end