From 953d4c22edab50bdc6498e256d2d6400f8fcd78a Mon Sep 17 00:00:00 2001 From: tompng Date: Thu, 4 Aug 2022 14:49:17 +0900 Subject: [ruby/irb] fix indent depth calculation after heredoc and embdoc https://github.com/ruby/irb/commit/b7973dd2d2 --- lib/irb/ruby-lex.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/irb/ruby-lex.rb b/lib/irb/ruby-lex.rb index 1f17953061..030cf79ee1 100644 --- a/lib/irb/ruby-lex.rb +++ b/lib/irb/ruby-lex.rb @@ -643,7 +643,7 @@ class RubyLex end case t.event - when :on_ignored_nl, :on_nl, :on_comment + when :on_ignored_nl, :on_nl, :on_comment, :on_heredoc_end, :on_embdoc_end if in_oneliner_def != :BODY corresponding_token_depth = nil spaces_at_line_head = 0 -- cgit v1.2.3