summaryrefslogtreecommitdiff
path: root/test/lisp/progmodes/ruby-mode-resources/ruby-after-operator-indent.rb
diff options
context:
space:
mode:
authorDmitry Gutov <dgutov@yandex.ru>2023-01-19 03:38:58 +0200
committerDmitry Gutov <dgutov@yandex.ru>2023-01-19 05:27:43 +0200
commitf2bedf695c15da93e8e240ad11a350a8dc8b5549 (patch)
tree6ee6d45133ffd417cfb26190325352c6c19f83ae /test/lisp/progmodes/ruby-mode-resources/ruby-after-operator-indent.rb
parent758ac5eabbe05fa5244e1bf863e45069035f311c (diff)
downloademacs-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-after-operator-indent.rb')
0 files changed, 0 insertions, 0 deletions