]> git.eshelyaron.com Git - emacs.git/commit
Add indentation rules for bracketless statements in js-ts-mode
authorNoah Peart <noah.v.peart@gmail.com>
Sun, 10 Dec 2023 22:58:31 +0000 (14:58 -0800)
committerEshel Yaron <me@eshelyaron.com>
Thu, 21 Dec 2023 20:51:41 +0000 (21:51 +0100)
commit9ca00ba502b2c17d12f74fc66ae4c00d5b19d602
tree3b63698fd8f2a54f0fecf1e2fa606e765d152098
parent3da7ad06194044bd9cc5e6349ce151420e361c77
Add indentation rules for bracketless statements in js-ts-mode

* lisp/progmodes/js.el (js--treesit-indent-rules): Add indentation
rules to handle bracketless statements (bug#67758).
* test/lisp/progmodes/js-tests.el (js-ts-mode-test-indentation):
New test for js-ts-mode indentation.
* test/lisp/progmodes/js-resources/js-ts-indents.erts: New file
with indentation tests for js-ts-mode.

(cherry picked from commit c165247c3009adec912abdf74d6d7d73c8c76c33)
lisp/progmodes/js.el
test/lisp/progmodes/js-resources/js-ts-indents.erts [new file with mode: 0644]
test/lisp/progmodes/js-tests.el