summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-01-19 13:27:38 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-01-19 13:27:38 +0000
commite9660a62ceee312dc297c55614410eda52d3d34f (patch)
tree8a1349ceaef71225fc6091801f6585ea9fd53596
parent24e33e9eaf2605469ac8e031265271bc177fd0b1 (diff)
downloadruby-e9660a62ceee312dc297c55614410eda52d3d34f.tar.gz
ruby-e9660a62ceee312dc297c55614410eda52d3d34f.tar.xz
ruby-e9660a62ceee312dc297c55614410eda52d3d34f.zip
* sample/exyacc.rb: escape '}' to avoid warning.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5504 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--sample/exyacc.rb4
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index b15e248bf..4b8a48dab 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
diff --git a/sample/exyacc.rb b/sample/exyacc.rb
index b8d49d630..5818825e2 100644
--- a/sample/exyacc.rb
+++ b/sample/exyacc.rb
@@ -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