Skip to content

Commit f65ec49

Browse files
committed
fix auto-indent after multiline string
1 parent ccc07a3 commit f65ec49

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/irb/ruby-lex.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ def find_prev_spaces(line_index)
182182
if line_count >= line_index
183183
return prev_spaces
184184
end
185+
next if t.event == :on_tstring_content || t.event == :on_words_sep
185186
if (@tokens.size - 1) > i
186187
md = @tokens[i + 1].tok.match(/(\A +)/)
187188
prev_spaces = md.nil? ? 0 : md[1].count(' ')

0 commit comments

Comments
 (0)