summaryrefslogtreecommitdiff
path: root/lib/irb/ruby-lex.rb
diff options
context:
space:
mode:
authortompng <tomoyapenguin@gmail.com>2022-08-04 14:49:17 +0900
committerTakashi Kokubun <takashikkbn@gmail.com>2022-12-26 13:03:07 -0800
commit953d4c22edab50bdc6498e256d2d6400f8fcd78a (patch)
treea619b0bf471eda42427edc9cef790e6a6affc0d2 /lib/irb/ruby-lex.rb
parentf20aac5c5980d7cb555db2d478d862328eca7620 (diff)
[ruby/irb] fix indent depth calculation after heredoc and embdoc
https://github.com/ruby/irb/commit/b7973dd2d2
Diffstat (limited to 'lib/irb/ruby-lex.rb')
-rw-r--r--lib/irb/ruby-lex.rb2
1 files changed, 1 insertions, 1 deletions
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