1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
nobu 2012-12-03 03:43:40 +00:00
parent 488fb86a1e
commit 983c2e874f
3 changed files with 34 additions and 9 deletions

View file

@ -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