diff options
author | Dmitry Gutov <dgutov@yandex.ru> | 2023-01-17 23:46:41 +0200 |
---|---|---|
committer | Dmitry Gutov <dgutov@yandex.ru> | 2023-01-18 03:27:37 +0200 |
commit | 9ed9ff4690a8b26ac9729a66aa22f2e14856cd0c (patch) | |
tree | e22f6db47e121596c62e20ee7cb568661b498f20 /test/lisp/progmodes/ruby-ts-mode-tests.el | |
parent | c4f0b6ccea128d52a7b4a9ddc1e81dcf13bb25ea (diff) | |
download | emacs-9ed9ff4690a8b26ac9729a66aa22f2e14856cd0c.tar.gz emacs-9ed9ff4690a8b26ac9729a66aa22f2e14856cd0c.tar.bz2 emacs-9ed9ff4690a8b26ac9729a66aa22f2e14856cd0c.zip |
ruby-ts-mode: Fix the rules for hanging arrays and hashes
* lisp/progmodes/ruby-ts-mode.el (ruby-ts--indent-rules):
Fix the rules for hanging arrays and hashes (to line up to
parent-bol instead of the opening brace).
* test/lisp/progmodes/ruby-mode-resources/ruby-ts.rb:
New file with examples.
* test/lisp/progmodes/ruby-ts-mode-tests.el: Use it here.
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 eaf6367a306..d7b6258385b 100644 --- a/test/lisp/progmodes/ruby-ts-mode-tests.el +++ b/test/lisp/progmodes/ruby-ts-mode-tests.el @@ -250,6 +250,7 @@ The whitespace before and including \"|\" on each line is removed." (should (equal (buffer-string) orig)))) (kill-buffer buf))))) +(ruby-ts-deftest-indent "ruby-ts.rb") (ruby-ts-deftest-indent "ruby-method-params-indent.rb") (ruby-ts-deftest-indent "ruby-block-indent.rb") |