diff options
author | tompng <[email protected]> | 2022-08-03 01:57:43 +0900 |
---|---|---|
committer | Takashi Kokubun <[email protected]> | 2022-12-26 13:03:07 -0800 |
commit | f20aac5c5980d7cb555db2d478d862328eca7620 (patch) | |
tree | c93979a0651b00fead58eb1adc29f88caa7080f6 /lib/irb/ruby-lex.rb | |
parent | 82ca477886b98ec49a4bc95470c2bff5fa3bb4a4 (diff) |
[ruby/irb] fix auto-indent after multiline string
https://github.com/ruby/irb/commit/f65ec49684
Diffstat (limited to 'lib/irb/ruby-lex.rb')
-rw-r--r-- | lib/irb/ruby-lex.rb | 1 |
1 files changed, 1 insertions, 0 deletions
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(' ') |