summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2019-06-22 00:31:30 +0900
committeraycabta <aycabta@gmail.com>2019-06-22 00:31:42 +0900
commitc79131df283b6291029e96fbb5d1943aa26dc1c1 (patch)
treeb0a4d86949a96da93074784cd985c3fb8f47d73f /lib
parent5e2088665b938cd68587999f4d105331cd1feeea (diff)
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
Diffstat (limited to 'lib')
-rw-r--r--lib/irb/ruby-lex.rb2
1 files changed, 1 insertions, 1 deletions
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