* sample/exyacc.rb: use Regexp in gsub!.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3644 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
267b39cfb4
commit
add23cc22e
@ -1,3 +1,7 @@
|
|||||||
|
Sun Apr 6 00:35:37 2003 Tanaka Akira <akr@m17n.org>
|
||||||
|
|
||||||
|
* sample/exyacc.rb: use Regexp in gsub!.
|
||||||
|
|
||||||
Fri Apr 4 10:53:22 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
|
Fri Apr 4 10:53:22 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
* eval.c (assign): should prepare mrhs by svalue_to_mrhs().
|
* eval.c (assign): should prepare mrhs by svalue_to_mrhs().
|
||||||
|
@ -11,8 +11,8 @@ while gets()
|
|||||||
sub!(/.*\n/, "")
|
sub!(/.*\n/, "")
|
||||||
gsub!(/'\{'/, "'\001'")
|
gsub!(/'\{'/, "'\001'")
|
||||||
gsub!(/'}'/, "'\002'")
|
gsub!(/'}'/, "'\002'")
|
||||||
gsub!('\*/', "\003\003")
|
gsub!(%r{\*/}, "\003\003")
|
||||||
gsub!("/\\*[^\003]*\003\003", '')
|
gsub!(%r{/\*[^\003]*\003\003}, '')
|
||||||
while gsub!(/\{[^{}]*}/, ''); end
|
while gsub!(/\{[^{}]*}/, ''); end
|
||||||
gsub!(/'\001'/, "'{'")
|
gsub!(/'\001'/, "'{'")
|
||||||
gsub!(/'\002'/, "'}'")
|
gsub!(/'\002'/, "'}'")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user