diff options
author | Augustin Chéneau <btuin@mailo.com> | 2023-09-20 12:23:06 +0200 |
---|---|---|
committer | Yuan Fu <casouri@gmail.com> | 2023-12-10 17:51:48 -0800 |
commit | e23068cb9a1692fc3c50b0b386237a56cae201f4 (patch) | |
tree | 9774a18f1a98a9234e7156fc6d8eed874dc3aa63 /lisp/progmodes | |
parent | d2c4b926ac20de6f7d9f3576b22272bc560bd0f7 (diff) | |
download | emacs-e23068cb9a1692fc3c50b0b386237a56cae201f4.tar.gz emacs-e23068cb9a1692fc3c50b0b386237a56cae201f4.tar.bz2 emacs-e23068cb9a1692fc3c50b0b386237a56cae201f4.zip |
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.
Diffstat (limited to 'lisp/progmodes')
-rw-r--r-- | lisp/progmodes/c-ts-mode.el | 2 |
1 files changed, 2 insertions, 0 deletions
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) |