]> 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)
committerDmitry Gutov <dmitry@gutov.dev>
Tue, 12 Dec 2023 01:13:12 +0000 (03:13 +0200)
commitc165247c3009adec912abdf74d6d7d73c8c76c33
tree415f5e856345c830c6d338742ddee4a139766bc9
parent7f1bd69cd19504f2bd47e13c530a55ffca08e27d
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.
lisp/progmodes/js.el
test/lisp/progmodes/js-resources/js-ts-indents.erts [new file with mode: 0644]
test/lisp/progmodes/js-tests.el