From: Yuan Fu Date: Wed, 6 Sep 2023 03:12:19 +0000 (-0700) Subject: Fix c-ts-mode BSD style indentation X-Git-Tag: emacs-29.1.90~131 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=14819131fffd76fc6630f02ab53663419628f7d9;p=emacs.git 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) --- 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)