summaryrefslogtreecommitdiffstats
path: root/sample
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-01-26 06:12:15 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-01-26 06:12:15 +0000
commit8f186a1d76ef5b73693b4e2cc2b3130a72512c21 (patch)
treeebb8ff161bcadfd75b851fa8ff6997b580e27393 /sample
parent0f577aac54c6baf5ece22de989761d1ac50f1bf8 (diff)
downloadruby-8f186a1d76ef5b73693b4e2cc2b3130a72512c21.tar.gz
ruby-8f186a1d76ef5b73693b4e2cc2b3130a72512c21.tar.xz
ruby-8f186a1d76ef5b73693b4e2cc2b3130a72512c21.zip
* sample/exyacc.rb: escape '}' to avoid warning.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@5557 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 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