diff options
author | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-01-19 14:05:55 +0000 |
---|---|---|
committer | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-01-19 14:05:55 +0000 |
commit | 939e7877d39ce31135cf04ace96ffaa481b803ff (patch) | |
tree | f894968871b02ec1fb715db730d5d627b2901b64 | |
parent | 0ade226f58b270dde4e198f9818741d7684dcb60 (diff) | |
download | ruby-939e7877d39ce31135cf04ace96ffaa481b803ff.tar.gz |
* lib/rdoc/parsers/parse_c.rb: escape '{' and '}' to avoid warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5505 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-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 |