ruby-changes:64733
From: Nobuyoshi <ko1@a...>
Date: Tue, 5 Jan 2021 00:01:58 +0900 (JST)
Subject: [ruby-changes:64733] 433a3be86a (master): ripper: call #pretty_print on also `state`
https://git.ruby-lang.org/ruby.git/commit/?id=433a3be86a From 433a3be86a811de0b4adbb92e054ee3a6fc6b4d8 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Mon, 4 Jan 2021 23:37:00 +0900 Subject: ripper: call #pretty_print on also `state` diff --git a/ext/ripper/lib/ripper/lexer.rb b/ext/ripper/lib/ripper/lexer.rb index cff38c6..35ef9b0 100644 --- a/ext/ripper/lib/ripper/lexer.rb +++ b/ext/ripper/lib/ripper/lexer.rb @@ -81,7 +81,7 @@ class Ripper https://github.com/ruby/ruby/blob/trunk/ext/ripper/lib/ripper/lexer.rb#L81 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) -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/