diff options
author | Dmitry Gutov <dgutov@yandex.ru> | 2023-01-19 03:38:58 +0200 |
---|---|---|
committer | Dmitry Gutov <dgutov@yandex.ru> | 2023-01-19 05:27:43 +0200 |
commit | f2bedf695c15da93e8e240ad11a350a8dc8b5549 (patch) | |
tree | 6ee6d45133ffd417cfb26190325352c6c19f83ae /test/lisp/progmodes/ruby-mode-resources/ruby-block-indent.rb | |
parent | 758ac5eabbe05fa5244e1bf863e45069035f311c (diff) | |
download | emacs-f2bedf695c15da93e8e240ad11a350a8dc8b5549.tar.gz emacs-f2bedf695c15da93e8e240ad11a350a8dc8b5549.tar.bz2 emacs-f2bedf695c15da93e8e240ad11a350a8dc8b5549.zip |
ruby-ts-mode: Handle indent in parenless calls much closer to ruby-mode
* lisp/progmodes/ruby-ts-mode.el (ruby-ts--parent-call-or-bol):
New function.
(ruby-ts--indent-rules): Use it for cases which need special
anchoring logic when inside a parenless method call.
Remove the ad-hoc handling of pair-hash-pair etc indentation,
which was there only for the parenless cases, apparently.
Have "No paren, ruby-parenless-call-arguments-indent is nil" case
align to the statement, if only because ruby-mode does that.
* test/lisp/progmodes/ruby-ts-mode-tests.el:
Run indent test for ruby-parenless-call-arguments-indent.rb.
Diffstat (limited to 'test/lisp/progmodes/ruby-mode-resources/ruby-block-indent.rb')
0 files changed, 0 insertions, 0 deletions