From: Theodor Thornhill Date: Mon, 20 Feb 2023 12:38:55 +0000 (+0100) Subject: Typescript-ts-mode: Add switch case handling X-Git-Tag: emacs-29.0.90~373 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=19480aa30e37c760b608c39aff67f28792a1ce94;p=emacs.git Typescript-ts-mode: Add switch case handling * lisp/progmodes/typescript-ts-mode.el (typescript-ts-mode--indent-rules): New rules. --- diff --git a/lisp/progmodes/typescript-ts-mode.el b/lisp/progmodes/typescript-ts-mode.el index de9b2f6845c..41cf4ff08f6 100644 --- a/lisp/progmodes/typescript-ts-mode.el +++ b/lisp/progmodes/typescript-ts-mode.el @@ -81,6 +81,8 @@ Argument LANGUAGE is either `typescript' or `tsx'." ((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 "switch_case") parent-bol typescript-ts-mode-indent-offset) + ((parent-is "switch_default") parent-bol typescript-ts-mode-indent-offset) ((parent-is "type_arguments") parent-bol typescript-ts-mode-indent-offset) ((parent-is "variable_declarator") parent-bol typescript-ts-mode-indent-offset) ((parent-is "arguments") parent-bol typescript-ts-mode-indent-offset)