From: Theodor Thornhill Date: Tue, 29 Nov 2022 15:12:18 +0000 (+0100) Subject: Add class_body indentation for typescript (bug#59680) X-Git-Tag: emacs-29.0.90~1268 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8de8f1dc05198ea9a1106ac2282acc9c93ee1ebd;p=emacs.git Add class_body indentation for typescript (bug#59680) * lisp/progmodes/typescript-ts-mode.el (typescript-ts-mode--indent-rules): New indent rule. --- 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)