]> git.eshelyaron.com Git - emacs.git/commit
ruby-ts-mode: Fix the rules for hanging arrays and hashes
authorDmitry Gutov <dgutov@yandex.ru>
Tue, 17 Jan 2023 21:46:41 +0000 (23:46 +0200)
committerDmitry Gutov <dgutov@yandex.ru>
Wed, 18 Jan 2023 01:27:37 +0000 (03:27 +0200)
commit9ed9ff4690a8b26ac9729a66aa22f2e14856cd0c
treee22f6db47e121596c62e20ee7cb568661b498f20
parentc4f0b6ccea128d52a7b4a9ddc1e81dcf13bb25ea
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.
lisp/progmodes/ruby-ts-mode.el
test/lisp/progmodes/ruby-mode-resources/ruby-ts.rb [new file with mode: 0644]
test/lisp/progmodes/ruby-ts-mode-tests.el