From f20aac5c5980d7cb555db2d478d862328eca7620 Mon Sep 17 00:00:00 2001 From: tompng Date: Wed, 3 Aug 2022 01:57:43 +0900 Subject: [ruby/irb] fix auto-indent after multiline string https://github.com/ruby/irb/commit/f65ec49684 --- lib/irb/ruby-lex.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') diff --git a/lib/irb/ruby-lex.rb b/lib/irb/ruby-lex.rb index 85b336fbe1..1f17953061 100644 --- a/lib/irb/ruby-lex.rb +++ b/lib/irb/ruby-lex.rb @@ -188,6 +188,7 @@ class RubyLex if line_count >= line_index return prev_spaces end + next if t.event == :on_tstring_content || t.event == :on_words_sep if (@tokens.size - 1) > i md = @tokens[i + 1].tok.match(/(\A +)/) prev_spaces = md.nil? ? 0 : md[1].count(' ') -- cgit v1.2.3