summaryrefslogtreecommitdiff
path: root/ext/ripper/lib
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-01-04 23:37:00 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-01-04 23:37:00 +0900
commit433a3be86a811de0b4adbb92e054ee3a6fc6b4d8 (patch)
treed6539898df8082aae6cb19fc5bb015c367c6a2de /ext/ripper/lib
parentafa9d65d61857792508b1405835b07b78e24449c (diff)
ripper: call #pretty_print on also `state`
Diffstat (limited to 'ext/ripper/lib')
-rw-r--r--ext/ripper/lib/ripper/lexer.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/ripper/lib/ripper/lexer.rb b/ext/ripper/lib/ripper/lexer.rb
index cff38c617d7..35ef9b088c4 100644
--- a/ext/ripper/lib/ripper/lexer.rb
+++ b/ext/ripper/lib/ripper/lexer.rb
@@ -81,7 +81,7 @@ class Ripper
q.breakable
q.text("#{event}@#{pos[0]}:#{pos[1]}")
q.breakable
- q.text(state)
+ state.pretty_print(q)
q.breakable
q.text("token: ")
tok.pretty_print(q)