From 14819131fffd76fc6630f02ab53663419628f7d9 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. (cherry picked from commit d392a5d3c11b7e7479d31421f8237f29952c909e) --- 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 34a89b4dcad..48d1fb09089 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