GNU Info

Info Node: (ccmode)Hanging Colons

(ccmode)Hanging Colons


Next: Hanging Semi-colons and Commas Prev: Hanging Braces Up: Auto-newline Insertion
Enter node , (file) or (file)node

Hanging Colons
--------------

   Using a mechanism similar to brace hanging (Note: Hanging Braces),
colons can also be made to hang using the style variable
`c-hanging-colons-alist'.  The syntactic symbols appropriate for this
association list are: `case-label', `label', `access-label',
`member-init-intro', and `inher-intro'.  Note however that for
`c-hanging-colons-alist', ACTIONs as functions are not supported. See
also Note: Custom Brace and Colon Hanging for details.

   In C++, double-colons are used as a scope operator but because these
colons always appear right next to each other, newlines before and after
them are controlled by a different mechanism, called "clean-ups" in CC
Mode.  Note: Clean-ups, for details.


automatically generated by info2www version 1.2.2.9