mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Check code_block_open for whether code continues
This commit is contained in:
parent
6bd49b33c8
commit
7b9bb6f44a
1 changed files with 2 additions and 2 deletions
|
@ -47,8 +47,8 @@ class RubyLex
|
|||
result = []
|
||||
lines.each_index { |i|
|
||||
c = lines[0..i].map{ |l| l + "\n" }.join
|
||||
ltype, indent, continue, = check_state(c)
|
||||
result << @prompt.call(ltype, indent, continue, @line_no + i)
|
||||
ltype, indent, continue, code_block_open = check_state(c)
|
||||
result << @prompt.call(ltype, indent, continue || code_block_open, @line_no + i)
|
||||
}
|
||||
result
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue