diff options
author | aycabta <[email protected]> | 2020-12-23 21:18:48 +0900 |
---|---|---|
committer | aycabta <[email protected]> | 2020-12-23 21:26:25 +0900 |
commit | 31bd17218515a20cf46951018d413b739935beba (patch) | |
tree | aa95d5702ae1c8ff6253c7ee72a67ea9bff3f096 /lib/irb/ruby-lex.rb | |
parent | 684649ea0573c94f4d5004d9f200df65205ea246 (diff) |
[ruby/irb] Suppress "shadowing outer" warning
https://github.com/ruby/irb/commit/8b83fbef69
Diffstat (limited to 'lib/irb/ruby-lex.rb')
-rw-r--r-- | lib/irb/ruby-lex.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/irb/ruby-lex.rb b/lib/irb/ruby-lex.rb index b07027898c..9914aece5e 100644 --- a/lib/irb/ruby-lex.rb +++ b/lib/irb/ruby-lex.rb @@ -557,7 +557,7 @@ class RubyLex end_type << :on_regexp_end when :on_symbeg acceptable_single_tokens = %i{on_ident on_const on_op on_cvar on_ivar on_gvar on_kw} - if (i + 1) < tokens.size and acceptable_single_tokens.all?{ |t| tokens[i + 1][1] != t } + if (i + 1) < tokens.size and acceptable_single_tokens.all?{ |st| tokens[i + 1][1] != st } start_token << t end_type << :on_tstring_end end |