From 19480aa30e37c760b608c39aff67f28792a1ce94 Mon Sep 17 00:00:00 2001 From: Theodor Thornhill Date: Mon, 20 Feb 2023 13:38:55 +0100 Subject: [PATCH] Typescript-ts-mode: Add switch case handling * lisp/progmodes/typescript-ts-mode.el (typescript-ts-mode--indent-rules): New rules. --- lisp/progmodes/typescript-ts-mode.el | 2 ++ 1 file changed, 2 insertions(+) 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) -- 2.39.2