Code formatting poor with modern Obj-C syntax

Originator:gperks
Number:rdar://11863140 Date Originated:12-Jul-2012 05:33 PM
Status:Open Resolved:
Product:Dev tools Product Version:4.4
Classification:Other bug Reproducible:Always
 
Summary:

Modern Obj-C syntax doesn't format well with Ctrl-I (Editor->Structure->Indent).

Steps to Reproduce:

Have some code looking like:

    NSDictionary *attribs = nil;
    attribs = @{ @"a":@1,
                       @"b":@2};

Expected Results:

One would want the colons all aligned, ideally.

Actual Results:

Ugliness:

    attribs = @{ @"a":@1,
    @"b":@2};

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!