From 69e2c74f9d1d12ac7f93a0d27c15a9a3e926a990 Mon Sep 17 00:00:00 2001 From: Alan Mackenzie Date: Wed, 25 Sep 2024 21:06:07 +0000 Subject: [PATCH] * etc/NEWS: Describe the change to enum handling in CC Mode (cherry picked from commit 3a0db55b5094686423b73b74ebdf9eba62d384f2) --- etc/NEWS | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/etc/NEWS b/etc/NEWS index aa0d1d6e734..1ccb7e9bb0b 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -213,6 +213,28 @@ will now automatically turn on 'visual-wrap-prefix-mode' in addition to near window edge and the continuation lines are indented using prefixes computed from surrounding context. +** CC Mode + ++++ +*** New type of 'c-offsets-alist' element. +The cdr of such an alist element may now be a syntactic symbol. A +source line with a syntactic element whose symbol is the car of that +alist element is indented as though it were the cdr. + ++++ +*** Enums now have their own syntactic symbols. +The new symbols 'enum-open', 'enum-close', 'enum-intro' and +'enum-entry' are used in the analysis of enum constructs. Previously +they were given 'brace-list-open', etc. These are fully described in +the CC Mode manual. + ++++ +*** Enums are now, by default, indented like classes, not brace-lists. +To get the old behavior back, add an element '(enum-open +. brace-list-open)' to 'c-offsets-alist' in your CC Mode style, or amend +'c-offsets-alist' likewise in any of the other ways detailed in the CC +Mode manual page "Config Basics". + ** Go-ts mode +++ -- 2.39.5