diff options
author | tompng <tomoyapenguin@gmail.com> | 2022-08-04 14:49:17 +0900 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2022-12-26 13:03:07 -0800 |
commit | 953d4c22edab50bdc6498e256d2d6400f8fcd78a (patch) | |
tree | a619b0bf471eda42427edc9cef790e6a6affc0d2 /lib/irb/ruby-lex.rb | |
parent | f20aac5c5980d7cb555db2d478d862328eca7620 (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.rb | 2 |
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 |