Fix label indentation for Linux style in c-ts-mode (bug#60543)
Reference: 1. https://www.gnu.org/software/indent/manual/indent/Common-styles.html 2. https://www.gnu.org/software/indent/manual/indent/Option-Summary.html The GNU indent manual says Linux style should use -il1 flag, which means "indent labels to column 1". * lisp/progmodes/c-ts-mode.el (c-ts-mode--indent-styles): Indent label to column 1 in Linux style.
This commit is contained in:
parent
8575043f56
commit
73168793c0
1 changed files with 3 additions and 1 deletions
|
@ -169,7 +169,9 @@ MODE is either `c' or `cpp'."
|
|||
((match "while" "do_statement") parent 0)
|
||||
,@common)
|
||||
(k&r ,@common)
|
||||
(linux ,@common)
|
||||
(linux
|
||||
((node-is "labeled_statement") point-min 1)
|
||||
,@common)
|
||||
(bsd
|
||||
((parent-is "if_statement") parent-bol 0)
|
||||
((parent-is "for_statement") parent-bol 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue