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:
parent
488fb86a1e
commit
983c2e874f
3 changed files with 34 additions and 9 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue