mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
Merge from origin/emacs-30
1d2ae31b8btypescript-ts-mode: Improve function body indentation (bu...421ecbcf6b; * CONTRIBUTE: Explain the line-width preferences.
This commit is contained in:
commit
b3a8633dba
3 changed files with 30 additions and 3 deletions
|
|
@ -182,3 +182,28 @@ interface Foo {
|
|||
bar?: boolean;
|
||||
}
|
||||
=-=-=
|
||||
|
||||
Code:
|
||||
(lambda ()
|
||||
(setq tsx-ts-mode-indent-offset 2)
|
||||
(tsx-ts-mode)
|
||||
(setq indent-tabs-mode nil)
|
||||
(indent-region (line-beginning-position 7) (point-max)))
|
||||
|
||||
Name: Function body with params misindented (bug#78121)
|
||||
|
||||
=-=
|
||||
const f1 = (a1: string,
|
||||
a2: number) => {
|
||||
const f2 = (a1: string,
|
||||
a2: number) => {
|
||||
const f3 = (a1: string,
|
||||
a2: number) =>
|
||||
{
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
=-=-=
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue