mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
c94025b630
https://github.com/ruby/irb/issues/55 If we had put multiple open braces on a line the with no closing brace spaces_of_nest array keeps getting '0' added to it. This means that when we pop off of this array we are saying that we should be in position zero for the next line. This is an issue because we don't always want to be in position 0 after a closing brace. Example: ``` [[[ ] ] ] ``` In the above example the 'spaces_of_nest' array looks like this after the first line is entered: [0,0,0]. We really want to be indented 4 spaces for the 1st closing brace 2 for the 2nd and 0 for the 3rd. i.e. we want it to be: [0,2,4]. We also saw this issue with a heredoc inside of an array. ``` [<<FOO] hello FOO ``` https://github.com/ruby/irb/commit/80c69c8272 |
||
---|---|---|
.. | ||
test_color.rb | ||
test_completion.rb | ||
test_context.rb | ||
test_init.rb | ||
test_option.rb | ||
test_raise_no_backtrace_exception.rb | ||
test_ruby_lex.rb | ||
test_workspace.rb |