1
0
Fork 0
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/branches/ruby_1_8@5658 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
eban 2004-02-09 08:17:28 +00:00
parent 168d96d1bf
commit a278e7a612
2 changed files with 5 additions and 1 deletions

View file

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

View file

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