mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* misc/ruby-mode.el (ruby-parse-partial): use position of open paren.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31308 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
86576c8f28
commit
d9e6b7d6a5
3 changed files with 22 additions and 2 deletions
|
@ -147,5 +147,21 @@ class TestRubyMode
|
|||
| end
|
||||
|')
|
||||
end
|
||||
|
||||
def test_array_after_paren_and_space
|
||||
assert_indent('
|
||||
|class A
|
||||
| def foo
|
||||
| foo( [])
|
||||
| end
|
||||
|end
|
||||
|', '
|
||||
|class A
|
||||
| def foo
|
||||
|foo( [])
|
||||
|end
|
||||
| end
|
||||
|')
|
||||
end
|
||||
end
|
||||
end if TestRubyMode::EMACS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue