From e23068cb9a1692fc3c50b0b386237a56cae201f4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Augustin=20Ch=C3=A9neau?= Date: Wed, 20 Sep 2023 12:23:06 +0200 Subject: [PATCH] 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. --- lisp/progmodes/c-ts-mode.el | 2 ++ 1 file changed, 2 insertions(+) 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) -- 2.39.2