diff options
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | lib/rdoc/parsers/parse_c.rb | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -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 |