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-ts-mode-tests.el | |
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-ts-mode-tests.el')
-rw-r--r-- | test/lisp/progmodes/ruby-ts-mode-tests.el | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/lisp/progmodes/ruby-ts-mode-tests.el b/test/lisp/progmodes/ruby-ts-mode-tests.el index 1d2cfbfb901..d34c235e82b 100644 --- a/test/lisp/progmodes/ruby-ts-mode-tests.el +++ b/test/lisp/progmodes/ruby-ts-mode-tests.el @@ -255,6 +255,7 @@ The whitespace before and including \"|\" on each line is removed." (ruby-ts-deftest-indent "ruby-block-indent.rb") (ruby-ts-deftest-indent "ruby-method-call-indent.rb") (ruby-ts-deftest-indent "ruby-method-params-indent.rb") +(ruby-ts-deftest-indent "ruby-parenless-call-arguments-indent.rb") (provide 'ruby-ts-mode-tests) |