]> git.eshelyaron.com Git - emacs.git/commit
typescript-ts-mode: align ternary-chain branches (bug#78187)
authorKonstantin Kharlamov <Hi-Angel@yandex.ru>
Thu, 1 May 2025 13:28:29 +0000 (20:28 +0700)
committerEshel Yaron <me@eshelyaron.com>
Tue, 20 May 2025 20:51:58 +0000 (22:51 +0200)
commit1bf87bb5db10c1ce8d8076347a15262fe2e29a3c
tree38845db9748a2776237faeaabd309c830ad16e5e
parent44244c0bae2a9b024f0c043134316c523193e491
typescript-ts-mode: align ternary-chain branches (bug#78187)

* lisp/progmodes/typescript-ts-mode.el:
(typescript-ts-mode--indent-rules): Make sure each new ternary
branch is aligned with the previous one.
* test/lisp/progmodes/typescript-ts-mode-resources/indent.erts:
(Chained ternary expressions): New test.

(cherry picked from commit c80fbe3f2355ab7182dcba98ed9717f0231aab00)
lisp/progmodes/typescript-ts-mode.el
test/lisp/progmodes/typescript-ts-mode-resources/indent.erts