mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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:
parent
0ade226f58
commit
939e7877d3
2 changed files with 3 additions and 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.
|
* 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>
|
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
|
* 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
|
# 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)
|
if Regexp.new(re, Regexp::MULTILINE).match(body)
|
||||||
body_text = $&
|
body_text = $&
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue