1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Show the parser states in pretty_print too

This commit is contained in:
Nobuyoshi Nakada 2019-06-27 16:57:31 +09:00
parent 2fd03fd7e6
commit 7b716bc52a
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60

View file

@ -74,6 +74,8 @@ class Ripper
q.breakable
q.text("#{event}@#{pos[0]}:#{pos[1]}")
q.breakable
q.text(state)
q.breakable
q.text("token: ")
tok.pretty_print(q)
if message