1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-08 12:40:49 -08:00
emacs/test/lisp/progmodes
Konstantin Kharlamov 1d2ae31b8b
typescript-ts-mode: Improve function body indentation (bug#78121)
Older code was calculating body indentation depending on function
parameters alignment.  This is incorrect, because if parameters are
misaligned, so will the function body.  Instead, use offset of the
previous standalone parent.

* lisp/progmodes/typescript-ts-mode.el:
(typescript-ts-mode--indent-rules): Stop depending on function
parameters indentation for calculating body content and the closing
`}'.
* test/lisp/progmodes/typescript-ts-mode-resources/indent.erts:
(Function body with params misindented (bug#78121)): Add new test.
2025-05-25 20:50:41 -07:00
..
c-ts-mode-resources ; Fix typos 2024-10-27 07:49:32 +01:00
cperl-mode-resources ; cperl-mode.el: Don't misinterpret exec_fcn as keyword exec 2025-03-09 16:26:51 +01:00
csharp-mode-resources Fix last change 2024-04-25 18:59:25 +03:00
elisp-mode-resources
elixir-ts-mode-resources ; Fix typos 2024-01-28 17:11:51 +01:00
flymake-resources
go-ts-mode-resources Fix go-ts-mode const_spec highlighting (Bug#76330) 2025-03-01 14:12:30 +02:00
heex-ts-mode-resources Add expression handling to heex-ts-mode 2025-01-03 09:41:15 +01:00
java-ts-mode-resources java-ts-mode: Indentation for opening brace on a separate line 2024-02-17 22:35:16 +02:00
js-resources Add indentation rules for bracketless statements in js-ts-mode 2023-12-12 03:13:12 +02:00
lua-ts-mode-resources ; Cleanup sexp things in 'lua-ts-mode' 2025-03-01 14:59:56 +02:00
project-resources
ruby-mode-resources Support the new option in ruby-ts-mode too 2024-09-02 21:57:35 +03:00
rust-ts-mode-resources Add rust-ts-mode font-locking tests (bug#70464) 2024-04-21 21:49:19 -07:00
sh-script-resources Make sh-script-tests.el more robust 2024-04-05 19:43:56 +02:00
typescript-ts-mode-resources typescript-ts-mode: Improve function body indentation (bug#78121) 2025-05-25 20:50:41 -07:00
xref-resources
asm-mode-tests.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
autoconf-tests.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
bat-mode-tests.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
bug-reference-tests.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
c-ts-mode-tests.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
cc-mode-tests.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
compile-tests.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
cperl-mode-tests.el ; cperl-mode-tests.el: Don't run the newest test in perl-mode 2025-01-14 12:17:47 +01:00
csharp-mode-tests.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
eglot-tests.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
elisp-mode-tests.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
elixir-ts-mode-tests.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
etags-tests.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
executable-tests.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
f90-tests.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
flymake-tests.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
gdb-mi-tests.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
glasses-tests.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
go-ts-mode-tests.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
grep-tests.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
heex-ts-mode-tests.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
hideshow-tests.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
java-ts-mode-tests.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
js-tests.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
lua-ts-mode-tests.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
octave-tests.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
opascal-tests.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
pascal-tests.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
peg-tests.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
perl-mode-tests.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
project-tests.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
ps-mode-tests.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
python-tests.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
ruby-mode-tests.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
ruby-ts-mode-tests.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
rust-ts-mode-tests.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
scheme-tests.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
sh-script-tests.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
sql-tests.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
subword-tests.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
tcl-tests.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
typescript-ts-mode-tests.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
which-func-tests.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00
xref-tests.el Update copyright year to 2025 2025-01-02 18:39:42 +01:00