summaryrefslogtreecommitdiff
path: root/sample
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
commit0ade226f58b270dde4e198f9818741d7684dcb60 (patch)
tree8a1349ceaef71225fc6091801f6585ea9fd53596 /sample
parent224021104d13cbb060cdf87914361503226e4adf (diff)
* sample/exyacc.rb: escape '}' to avoid warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5504 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sample')
-rw-r--r--sample/exyacc.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/sample/exyacc.rb b/sample/exyacc.rb
index b8d49d630a..5818825e25 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