ruby-changes:58849
From: aycabta <ko1@a...>
Date: Wed, 20 Nov 2019 10:00:39 +0900 (JST)
Subject: [ruby-changes:58849] 9306602f24 (master): Replace typo "bock" with "block"
https://git.ruby-lang.org/ruby.git/commit/?id=9306602f24 From 9306602f24e5c9be4cdae5ed7e69e746ae9e175e Mon Sep 17 00:00:00 2001 From: aycabta <aycabta@g...> Date: Wed, 20 Nov 2019 09:58:33 +0900 Subject: Replace typo "bock" with "block" diff --git a/lib/irb/ruby-lex.rb b/lib/irb/ruby-lex.rb index 586123f..b6db384 100644 --- a/lib/irb/ruby-lex.rb +++ b/lib/irb/ruby-lex.rb @@ -307,7 +307,7 @@ class RubyLex https://github.com/ruby/ruby/blob/trunk/lib/irb/ruby-lex.rb#L307 case t[2] when 'do' if index > 0 and @tokens[index - 1][3].anybits?(Ripper::EXPR_CMDARG | Ripper::EXPR_ENDFN) - # method_with_bock do; end + # method_with_block do; end indent += 1 else # while cond do; end # also "until" or "for" @@ -350,7 +350,7 @@ class RubyLex https://github.com/ruby/ruby/blob/trunk/lib/irb/ruby-lex.rb#L350 case t[2] when 'do' if index > 0 and @tokens[index - 1][3].anybits?(Ripper::EXPR_CMDARG | Ripper::EXPR_ENDFN) - # method_with_bock do; end + # method_with_block do; end depth_difference += 1 else # while cond do; end # also "until" or "for" -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/