From 983c2e874f2c5e12fa29d3c66d077aa232092834 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 3 Dec 2012 03:43:40 +0000 Subject: ruby-mode.el: fix argument indent * misc/ruby-mode.el (ruby-block-end-re, ruby-delimiter) (ruby-mode-syntax-table, ruby-parse-partial, ruby-beginning-of-indent): merge from Emacs. * misc/ruby-mode.el (ruby-calculate-indent): fix indentation of argument lines in parentheses. [Bug #5140] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38150 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/misc/test_ruby_mode.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'test/misc') diff --git a/test/misc/test_ruby_mode.rb b/test/misc/test_ruby_mode.rb index d654cdc34b..e011ece1cf 100644 --- a/test/misc/test_ruby_mode.rb +++ b/test/misc/test_ruby_mode.rb @@ -165,5 +165,17 @@ class TestRubyMode | end |') end + + def test_spread_arguments + assert_indent(' + |foo(1, + | 2, + | 3) + |', ' + |foo(1, + | 2, + | 3) + |') + end end end if TestRubyMode::EMACS -- cgit v1.2.3