mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 17:24:23 +00:00
Fix c-ts-mode indentation (bug#75442)
* lisp/progmodes/c-ts-mode.el (c-ts-mode--simple-indent-rules): Use standalone-parent instead of parent. * test/lisp/progmodes/c-ts-mode-resources/indent.erts: New test.
This commit is contained in:
parent
7d3bc1ff2f
commit
04032cd00a
2 changed files with 11 additions and 1 deletions
|
|
@ -474,7 +474,7 @@ MODE can be `c' or `cpp'. STYLE can be `gnu', `k&r', `linux', `bsd'."
|
|||
"enum_specifier"
|
||||
"function_declarator"
|
||||
"template_declaration")))
|
||||
parent 0)
|
||||
standalone-parent 0)
|
||||
;; This is for the trailing-star stype: int *
|
||||
;; func()
|
||||
((match "function_declarator" nil "declarator") parent-bol 0)
|
||||
|
|
|
|||
|
|
@ -149,6 +149,16 @@ fn()
|
|||
};
|
||||
=-=-=
|
||||
|
||||
Name: typedef with struct definition (bug#75442)
|
||||
|
||||
=-=
|
||||
typedef struct Point
|
||||
{
|
||||
int x;
|
||||
int y;
|
||||
} Point;
|
||||
=-=-=
|
||||
|
||||
Name: Multiline Parameter List (bug#60398)
|
||||
|
||||
=-=
|
||||
|
|
|
|||
Loading…
Reference in a new issue