From: Augustin Chéneau Date: Wed, 20 Sep 2023 10:23:06 +0000 (+0200) Subject: Add missing indent rules in c-ts-mode (bug#66152) X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e23068cb9a1692fc3c50b0b386237a56cae201f4;p=emacs.git Add missing indent rules in c-ts-mode (bug#66152) Example: static myttype * variable_name; * lisp/progmodes/c-ts-mode.el (c-ts-mode--indent-styles): Add rules. --- diff --git a/lisp/progmodes/c-ts-mode.el b/lisp/progmodes/c-ts-mode.el index e708420148a..5606996eee2 100644 --- a/lisp/progmodes/c-ts-mode.el +++ b/lisp/progmodes/c-ts-mode.el @@ -436,6 +436,8 @@ MODE is either `c' or `cpp'." ((parent-is "preproc") c-ts-mode--anchor-prev-sibling 0) ((parent-is "function_definition") parent-bol 0) + ((parent-is "pointer_declarator") parent-bol 0) + ((parent-is "declaration") parent-bol 0) ((parent-is "conditional_expression") first-sibling 0) ((parent-is "assignment_expression") parent-bol c-ts-mode-indent-offset) ((parent-is "concatenated_string") first-sibling 0)