aboutsummaryrefslogtreecommitdiffstats
path: root/test/misc
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-04-19 15:02:16 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-04-19 15:02:16 +0000
commitd9e6b7d6a5e81afb588d79ef923b70890cdec4ba (patch)
tree086f54f724ee2a864e8ac528fd715869afe18ebf /test/misc
parent86576c8f28cbb2fec257c7cc46307954c18e39ce (diff)
downloadruby-d9e6b7d6a5e81afb588d79ef923b70890cdec4ba.tar.gz
* 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
Diffstat (limited to 'test/misc')
-rw-r--r--test/misc/test_ruby_mode.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/misc/test_ruby_mode.rb b/test/misc/test_ruby_mode.rb
index 3e2a62cb76..5723dbdaa3 100644
--- a/test/misc/test_ruby_mode.rb
+++ b/test/misc/test_ruby_mode.rb
@@ -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