diff options
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rw-r--r-- | lib/rdoc/parsers/parse_c.rb | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -1,3 +1,7 @@ +Mon Feb 9 17:16:00 2004 WATANABE Hirofumi <eban@ruby-lang.org> + + * lib/rdoc/parsers/parse_c.rb: escape '{' and '}' to avoid warnings. + Mon Feb 9 13:00:55 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp> * dir.c (fnmatch): 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 |
