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 if is_first_printable_of_line
corresponding_token_depth = spaces_of_nest.pop corresponding_token_depth = spaces_of_nest.pop
else else
spaces_of_nest.pop
corresponding_token_depth = nil corresponding_token_depth = nil
end end
when :on_kw when :on_kw
@ -383,6 +384,7 @@ class RubyLex
if is_first_printable_of_line if is_first_printable_of_line
corresponding_token_depth = spaces_of_nest.pop corresponding_token_depth = spaces_of_nest.pop
else else
spaces_of_nest.pop
corresponding_token_depth = nil corresponding_token_depth = nil
end end
end end