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
|
|
@ -155,7 +155,7 @@ Argument LANGUAGE is either `typescript' or `tsx'."
|
|||
(typescript-ts-mode--check-dialect language)
|
||||
`((,language
|
||||
((parent-is "program") column-0 0)
|
||||
((node-is "}") parent-bol 0)
|
||||
((node-is "}") standalone-parent 0)
|
||||
((node-is ")") parent-bol 0)
|
||||
((node-is "]") parent-bol 0)
|
||||
((node-is ">") parent-bol 0)
|
||||
|
|
@ -165,7 +165,7 @@ Argument LANGUAGE is either `typescript' or `tsx'."
|
|||
((parent-is "ternary_expression") standalone-parent typescript-ts-mode-indent-offset)
|
||||
((parent-is "member_expression") parent-bol typescript-ts-mode-indent-offset)
|
||||
((parent-is "named_imports") parent-bol typescript-ts-mode-indent-offset)
|
||||
((parent-is "statement_block") parent-bol typescript-ts-mode-indent-offset)
|
||||
((parent-is "statement_block") standalone-parent typescript-ts-mode-indent-offset)
|
||||
((or (node-is "case")
|
||||
(node-is "default"))
|
||||
parent-bol typescript-ts-mode-indent-offset)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue