From d392a5d3c11b7e7479d31421f8237f29952c909e Mon Sep 17 00:00:00 2001 From: Yuan Fu Date: Tue, 5 Sep 2023 20:12:19 -0700 Subject: [PATCH] Fix c-ts-mode BSD style indentation * lisp/progmodes/c-ts-mode.el: (c-ts-mode--indent-styles): Add else_clause. --- lisp/progmodes/c-ts-mode.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/progmodes/c-ts-mode.el b/lisp/progmodes/c-ts-mode.el index 7350ef3f4b8..5f685e016d2 100644 --- a/lisp/progmodes/c-ts-mode.el +++ b/lisp/progmodes/c-ts-mode.el @@ -478,6 +478,7 @@ MODE is either `c' or `cpp'." ((parent-is "labeled_statement") parent-bol c-ts-mode-indent-offset) ((parent-is "compound_statement") parent-bol c-ts-mode-indent-offset) ((parent-is "if_statement") parent-bol 0) + ((parent-is "else_clause") parent-bol 0) ((parent-is "for_statement") parent-bol 0) ((parent-is "while_statement") parent-bol 0) ((parent-is "switch_statement") parent-bol 0) -- 2.39.2