summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-09-30 06:42:24 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-09-30 06:42:24 +0000
commit3ca9f25b29f6a9bd11be74e22f3d7473cae3b64e (patch)
tree767558a802e73e525dfb185406b8a66dd2929b33 /ext
parent9189cf5793cd527a86b711d15d5fd0633ec082e1 (diff)
ripper/lexer.rb: remove double quotes
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60069 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/ripper/lib/ripper/lexer.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/ripper/lib/ripper/lexer.rb b/ext/ripper/lib/ripper/lexer.rb
index b7735fc..bb59080 100644
--- a/ext/ripper/lib/ripper/lexer.rb
+++ b/ext/ripper/lib/ripper/lexer.rb
@@ -50,8 +50,7 @@ class Ripper
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: