aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--lib/rdoc/parsers/parse_c.rb2
2 files changed, 3 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 4b8a48dab9..19471a55e4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,8 @@ Mon Jan 19 22:24:28 2004 WATANABE Hirofumi <eban@ruby-lang.org>
* sample/exyacc.rb: escape '}' to avoid warning.
+ * lib/rdoc/parsers/parse_c.rb: escape '{' and '}' to avoid warnings.
+
Mon Jan 19 21:28:06 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/digest/defs.h, win32/win3.c, win32/win32.h, file.c: remove
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