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:
parent
5e2088665b
commit
c79131df28
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue