summaryrefslogtreecommitdiff
path: root/lib/rdoc
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-02-09 08:17:28 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-02-09 08:17:28 +0000
commita278e7a612683153a875432ad44b3ea9ed67ac28 (patch)
tree8983e3479834eae1cdb2b53db382999287d0a644 /lib/rdoc
parent168d96d1bf8be9ad5acf4cecca3b925270cb7d1e (diff)
* lib/rdoc/parsers/parse_c.rb: escape '{' and '}' to avoid warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@5658 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rdoc')
-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