aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorEli Zaretskii2025-05-31 08:29:50 -0400
committerEli Zaretskii2025-05-31 08:29:50 -0400
commitb3a8633dbad04fbd381ab2c8ea8b4c2b953c809f (patch)
tree0bc3134354511782876d093cd04bf824eae32904 /test
parent6f8cee03316e166e4204ba49fbb9964a075968ca (diff)
parent1d2ae31b8bcca5f00c3c707cc7af3a347749c332 (diff)
downloademacs-b3a8633dbad04fbd381ab2c8ea8b4c2b953c809f.tar.gz
emacs-b3a8633dbad04fbd381ab2c8ea8b4c2b953c809f.zip
Merge from origin/emacs-30
1d2ae31b8bc typescript-ts-mode: Improve function body indentation (bu... 421ecbcf6b4 ; * CONTRIBUTE: Explain the line-width preferences.
Diffstat (limited to 'test')
-rw-r--r--test/lisp/progmodes/typescript-ts-mode-resources/indent.erts25
1 files changed, 25 insertions, 0 deletions
diff --git a/test/lisp/progmodes/typescript-ts-mode-resources/indent.erts b/test/lisp/progmodes/typescript-ts-mode-resources/indent.erts
index e8b1d57f132..210bfcabd41 100644
--- a/test/lisp/progmodes/typescript-ts-mode-resources/indent.erts
+++ b/test/lisp/progmodes/typescript-ts-mode-resources/indent.erts
@@ -182,3 +182,28 @@ interface Foo {
182 bar?: boolean; 182 bar?: boolean;
183} 183}
184=-=-= 184=-=-=
185
186Code:
187 (lambda ()
188 (setq tsx-ts-mode-indent-offset 2)
189 (tsx-ts-mode)
190 (setq indent-tabs-mode nil)
191 (indent-region (line-beginning-position 7) (point-max)))
192
193Name: Function body with params misindented (bug#78121)
194
195=-=
196const f1 = (a1: string,
197 a2: number) => {
198 const f2 = (a1: string,
199 a2: number) => {
200 const f3 = (a1: string,
201 a2: number) =>
202 {
203 return;
204 }
205 return;
206 }
207 return;
208}
209=-=-=