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

Treat closing token with starting token at head of 2nd line correctly

v =
  if true # starting token at head of 2nd line
    3
  end # closing token
This commit is contained in:
aycabta 2019-06-22 00:31:30 +09:00
parent 5e2088665b
commit c79131df28

View file

@ -299,7 +299,7 @@ class RubyLex
corresponding_token_depth = nil
case t[1]
when :on_ignored_nl, :on_nl
spaces_at_line_head = nil
spaces_at_line_head = 0
is_first_spaces_of_line = true
is_first_printable_of_line = true
next indent