summaryrefslogtreecommitdiff
path: root/lib/irb/ruby-lex.rb
diff options
context:
space:
mode:
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