summaryrefslogtreecommitdiff
path: root/test/lisp/progmodes/ruby-ts-mode-tests.el
diff options
context:
space:
mode:
authorDmitry Gutov <dgutov@yandex.ru>2023-01-18 02:55:09 +0200
committerDmitry Gutov <dgutov@yandex.ru>2023-01-18 03:27:37 +0200
commit045404d1aac1a9bd4ad2a3af8db577d7f05b9d03 (patch)
tree14df7bf67587c1118c3b465da0232b645ea03118 /test/lisp/progmodes/ruby-ts-mode-tests.el
parent300ca6ac37250711b7d6484e0a870bf37e9e00cb (diff)
downloademacs-045404d1aac1a9bd4ad2a3af8db577d7f05b9d03.tar.gz
emacs-045404d1aac1a9bd4ad2a3af8db577d7f05b9d03.tar.bz2
emacs-045404d1aac1a9bd4ad2a3af8db577d7f05b9d03.zip
ruby-ts-mode: Obey the option ruby-after-operator-indent
* lisp/progmodes/ruby-ts-mode.el (ruby-ts--after-op-indent-p): New function. (ruby-ts--indent-rules): Use it. * test/lisp/progmodes/ruby-ts-mode-tests.el: Run indent test for ruby-after-operator-indent.rb. * test/lisp/progmodes/ruby-mode-resources/ruby-ts.rb: Make sure indentation vars are at their default values.
Diffstat (limited to 'test/lisp/progmodes/ruby-ts-mode-tests.el')
-rw-r--r--test/lisp/progmodes/ruby-ts-mode-tests.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/lisp/progmodes/ruby-ts-mode-tests.el b/test/lisp/progmodes/ruby-ts-mode-tests.el
index d7b6258385b..1d686a2ac53 100644
--- a/test/lisp/progmodes/ruby-ts-mode-tests.el
+++ b/test/lisp/progmodes/ruby-ts-mode-tests.el
@@ -251,8 +251,9 @@ The whitespace before and including \"|\" on each line is removed."
(kill-buffer buf)))))
(ruby-ts-deftest-indent "ruby-ts.rb")
-(ruby-ts-deftest-indent "ruby-method-params-indent.rb")
+(ruby-ts-deftest-indent "ruby-after-operator-indent.rb")
(ruby-ts-deftest-indent "ruby-block-indent.rb")
+(ruby-ts-deftest-indent "ruby-method-params-indent.rb")
(provide 'ruby-ts-mode-tests)