From c79131df283b6291029e96fbb5d1943aa26dc1c1 Mon Sep 17 00:00:00 2001 From: aycabta Date: Sat, 22 Jun 2019 00:31:30 +0900 Subject: [PATCH] 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 --- lib/irb/ruby-lex.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/irb/ruby-lex.rb b/lib/irb/ruby-lex.rb index fa72c65252..7caa2ee6db 100644 --- a/lib/irb/ruby-lex.rb +++ b/lib/irb/ruby-lex.rb @@ -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