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

Decrease nesting level when closing token comes at a non-first token of line

This commit is contained in:
aycabta 2019-06-26 18:41:42 +09:00
parent 28eeaed8a9
commit ba17127e99

View file

@ -366,6 +366,7 @@ class RubyLex
if is_first_printable_of_line
corresponding_token_depth = spaces_of_nest.pop
else
spaces_of_nest.pop
corresponding_token_depth = nil
end
when :on_kw
@ -383,6 +384,7 @@ class RubyLex
if is_first_printable_of_line
corresponding_token_depth = spaces_of_nest.pop
else
spaces_of_nest.pop
corresponding_token_depth = nil
end
end