From a9415e93d2e038957b3c2f41c5e161d8f8439d65 Mon Sep 17 00:00:00 2001 From: eban Date: Mon, 9 Feb 2004 08:17:28 +0000 Subject: * lib/rdoc/parsers/parse_c.rb: escape '{' and '}' to avoid warnings. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@5658 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/rdoc/parsers/parse_c.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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 -- cgit