summaryrefslogtreecommitdiff
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
commit939e7877d39ce31135cf04ace96ffaa481b803ff (patch)
treef894968871b02ec1fb715db730d5d627b2901b64 /lib/rdoc/parsers/parse_c.rb
parent0ade226f58b270dde4e198f9818741d7684dcb60 (diff)
* lib/rdoc/parsers/parse_c.rb: escape '{' and '}' to avoid warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/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 b1b752222b..d491e3d88d 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