aboutsummaryrefslogtreecommitdiffstats
path: root/test/misc
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-03-09 14:06:15 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-03-09 14:06:15 +0000
commit862048e28d26112af1e67205cfd1c16564590bce (patch)
tree6de342236d0e592f0c7c2af18064df12088bc45c /test/misc
parent4df71924e47bc0da8bbc3a08f814c48350131585 (diff)
downloadruby-862048e28d26112af1e67205cfd1c16564590bce.tar.gz
* misc/ruby-mode.el (ruby-parse-partial): fix indent after aref.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31076 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/misc')
-rw-r--r--test/misc/test_ruby_mode.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/misc/test_ruby_mode.rb b/test/misc/test_ruby_mode.rb
index 64786b3408..6ac3f2e26a 100644
--- a/test/misc/test_ruby_mode.rb
+++ b/test/misc/test_ruby_mode.rb
@@ -132,5 +132,17 @@ class TestRubyMode
| end
|')
end
+
+ def test_array_literal
+ assert_indent('
+ |begin
+ | a[b]
+ |end
+ |', '
+ |begin
+ | a[b]
+ | end
+ |')
+ end
end
end if TestRubyMode::EMACS