Increase indent of continuation line

v =
    3 # auto indent
This commit is contained in:
aycabta 2019-06-27 01:25:22 +09:00
parent df3c94712b
commit 24c4e6dec1

View File

@ -308,6 +308,9 @@ class RubyLex
def check_newline_depth_difference
depth_difference = 0
if @tokens.size >= 2 and @tokens.last[2].end_with?("\n") and @tokens[-2][3].nobits?(Ripper::EXPR_END | Ripper::EXPR_ENDFN)
return 1
end
@tokens.each_with_index do |t, index|
case t[1]
when :on_ignored_nl, :on_nl