From a278e7a612683153a875432ad44b3ea9ed67ac28 Mon Sep 17 00:00:00 2001 From: eban Date: Mon, 9 Feb 2004 08:17:28 +0000 Subject: [PATCH] * 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 --- ChangeLog | 4 ++++ lib/rdoc/parsers/parse_c.rb | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 897a792cb1..bdb5a6f50a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Mon Feb 9 17:16:00 2004 WATANABE Hirofumi + + * lib/rdoc/parsers/parse_c.rb: escape '{' and '}' to avoid warnings. + Mon Feb 9 13:00:55 2004 Hirokazu Yamamoto * dir.c (fnmatch): 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