diff options
author | Alan Mackenzie <acm@muc.de> | 2008-01-27 13:59:47 +0000 |
---|---|---|
committer | Alan Mackenzie <acm@muc.de> | 2008-01-27 13:59:47 +0000 |
commit | 4fae8922bea01886f04e534c26b12f2876fefb80 (patch) | |
tree | 385463cf69533f0aaccf73959e2bd260eab24a96 /lisp/progmodes/cc-cmds.el | |
parent | 3e5558010a804bfda1b176b93b81af4eceeb2cb7 (diff) | |
download | emacs-4fae8922bea01886f04e534c26b12f2876fefb80.tar.gz |
Introduce elements for the syntactic symbol arglist-cont-nonempty into
c-hanging-braces-alist. Amend pertinent functions and 5 styles.
Diffstat (limited to 'lisp/progmodes/cc-cmds.el')
-rw-r--r-- | lisp/progmodes/cc-cmds.el | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/progmodes/cc-cmds.el b/lisp/progmodes/cc-cmds.el index 8d3facb08b6..1a2ee3f0ce5 100644 --- a/lisp/progmodes/cc-cmds.el +++ b/lisp/progmodes/cc-cmds.el @@ -524,7 +524,11 @@ inside a literal or a macro, nothing special happens." ;; This is the list of brace syntactic symbols that can hang. ;; If any new ones are added to c-offsets-alist, they should be ;; added here as well. - '(class-open class-close defun-open defun-close + ;; + ;; The order of this list is important; if SYNTAX has several + ;; elements, the element that "wins" is the earliest in SYMS. + '(arglist-cont-nonempty ; e.g. an array literal. + class-open class-close defun-open defun-close inline-open inline-close brace-list-open brace-list-close brace-list-intro brace-entry-open |