1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Remove auto indent of continuation line

This commit is contained in:
aycabta 2019-06-28 22:25:35 +09:00
parent 8ec877d183
commit c718f56ed9

View file

@ -308,9 +308,6 @@ 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 | Ripper::EXPR_CMDARG | Ripper::EXPR_LABEL)
return 1
end
@tokens.each_with_index do |t, index|
case t[1]
when :on_ignored_nl, :on_nl