1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* sample/exyacc.rb: escape '}' to avoid warning.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5504 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
eban 2004-01-19 13:27:38 +00:00
parent 224021104d
commit 0ade226f58
2 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,7 @@
Mon Jan 19 22:24:28 2004 WATANABE Hirofumi <eban@ruby-lang.org>
* sample/exyacc.rb: escape '}' to avoid warning.
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

View file

@ -10,10 +10,10 @@ while gets()
$_ = $_[sbeg, send-sbeg]
sub!(/.*\n/, "")
gsub!(/'\{'/, "'\001'")
gsub!(/'}'/, "'\002'")
gsub!(/'\}'/, "'\002'")
gsub!(%r{\*/}, "\003\003")
gsub!(%r{/\*[^\003]*\003\003}, '')
while gsub!(/\{[^{}]*}/, ''); end
while gsub!(/\{[^{}]*\}/, ''); end
gsub!(/'\001'/, "'{'")
gsub!(/'\002'/, "'}'")
while gsub!(/^[ \t]*\n(\s)/, '\1'); end