From 8de8f1dc05198ea9a1106ac2282acc9c93ee1ebd Mon Sep 17 00:00:00 2001 From: Theodor Thornhill Date: Tue, 29 Nov 2022 16:12:18 +0100 Subject: [PATCH] Add class_body indentation for typescript (bug#59680) * lisp/progmodes/typescript-ts-mode.el (typescript-ts-mode--indent-rules): New indent rule. --- lisp/progmodes/typescript-ts-mode.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/progmodes/typescript-ts-mode.el b/lisp/progmodes/typescript-ts-mode.el index c4a5bd37e05..8c4364ecc5b 100644 --- a/lisp/progmodes/typescript-ts-mode.el +++ b/lisp/progmodes/typescript-ts-mode.el @@ -89,6 +89,7 @@ Argument LANGUAGE is either `typescript' or `tsx'." ((parent-is "object") parent-bol typescript-ts-mode-indent-offset) ((parent-is "object_type") parent-bol typescript-ts-mode-indent-offset) ((parent-is "enum_body") parent-bol typescript-ts-mode-indent-offset) + ((parent-is "class_body") parent-bol typescript-ts-mode-indent-offset) ((parent-is "arrow_function") parent-bol typescript-ts-mode-indent-offset) ((parent-is "parenthesized_expression") parent-bol typescript-ts-mode-indent-offset) -- 2.39.2