ruby-changes:47954
From: nobu <ko1@a...>
Date: Sat, 30 Sep 2017 15:42:28 +0900 (JST)
Subject: [ruby-changes:47954] nobu:r60069 (trunk): ripper/lexer.rb: remove double quotes
nobu 2017-09-30 15:42:24 +0900 (Sat, 30 Sep 2017) New Revision: 60069 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60069 Log: ripper/lexer.rb: remove double quotes Modified files: trunk/ext/ripper/lib/ripper/lexer.rb Index: ext/ripper/lib/ripper/lexer.rb =================================================================== --- ext/ripper/lib/ripper/lexer.rb (revision 60068) +++ ext/ripper/lib/ripper/lexer.rb (revision 60069) @@ -50,8 +50,7 @@ class Ripper https://github.com/ruby/ruby/blob/trunk/ext/ripper/lib/ripper/lexer.rb#L50 class Elem class List < ::Array def inspect - pos, event, tok, state = self - [pos, event, tok, Ripper.lex_state_name(state)].inspect + super.sub!(/\d+(?=\]\z)/, Ripper.lex_state_name(self[3])) end def pretty_print(q) # :nodoc: -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/