From 939e7877d39ce31135cf04ace96ffaa481b803ff Mon Sep 17 00:00:00 2001 From: eban Date: Mon, 19 Jan 2004 14:05:55 +0000 Subject: * 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 --- lib/rdoc/parsers/parse_c.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/rdoc/parsers/parse_c.rb') 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 -- cgit v1.2.3