* 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
This commit is contained in:
eban 2004-01-19 14:05:55 +00:00
Родитель 0ade226f58
Коммит 939e7877d3
2 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -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

Просмотреть файл

@ -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