[前][次][番号順一覧][スレッド一覧]

ruby-changes:32161

From: a_matsuda <ko1@a...>
Date: Mon, 16 Dec 2013 19:09:16 +0900 (JST)
Subject: [ruby-changes:32161] a_matsuda:r44240 (trunk): * sample/exyacc.rb: Fix typo in a variable name

a_matsuda	2013-12-16 19:09:10 +0900 (Mon, 16 Dec 2013)

  New Revision: 44240

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=44240

  Log:
    * sample/exyacc.rb:  Fix typo in a variable name
    
    s/grammer/grammar/

  Modified files:
    trunk/sample/exyacc.rb
Index: sample/exyacc.rb
===================================================================
--- sample/exyacc.rb	(revision 44239)
+++ sample/exyacc.rb	(revision 44240)
@@ -5,16 +5,16 @@ https://github.com/ruby/ruby/blob/trunk/sample/exyacc.rb#L5
 ARGF.each(nil) do |source|
   sbeg = source.index("\n%%") + 1
   send = source.rindex("\n%%") + 1
-  grammer = source[sbeg, send-sbeg]
-  grammer.sub!(/.*\n/, "")
-  grammer.gsub!(/'\{'/, "'\001'")
-  grammer.gsub!(/'\}'/, "'\002'")
-  grammer.gsub!(%r{\*/}, "\003\003")
-  grammer.gsub!(%r{/\*[^\003]*\003\003}, '')
-  while grammer.gsub!(/\{[^{}]*\}/, ''); end
-  grammer.gsub!(/'\001'/, "'{'")
-  grammer.gsub!(/'\002'/, "'}'")
-  while grammer.gsub!(/^[ \t]*\n(\s)/, '\1'); end
-  grammer.gsub!(/([:|])[ \t\n]+(\w)/, '\1 \2')
-  print grammer
+  grammar = source[sbeg, send-sbeg]
+  grammar.sub!(/.*\n/, "")
+  grammar.gsub!(/'\{'/, "'\001'")
+  grammar.gsub!(/'\}'/, "'\002'")
+  grammar.gsub!(%r{\*/}, "\003\003")
+  grammar.gsub!(%r{/\*[^\003]*\003\003}, '')
+  while grammar.gsub!(/\{[^{}]*\}/, ''); end
+  grammar.gsub!(/'\001'/, "'{'")
+  grammar.gsub!(/'\002'/, "'}'")
+  while grammar.gsub!(/^[ \t]*\n(\s)/, '\1'); end
+  grammar.gsub!(/([:|])[ \t\n]+(\w)/, '\1 \2')
+  print grammar
 end

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]