Swift: Xcode doesn't color the array or dictionary literal syntax as literals

Originator:The.Ajarn
Number:rdar://17317543 Date Originated:June 15 2014
Status:Open Resolved:
Product:Xcode / Swift Product Version:Xcode Version 6.0 (6A215l)
Classification:Other Bug Reproducible:Always
 
Summary:
For Objective-C Xcode will color the @[] and @{} portion of array and dictionary literals as the literal color (which is used for character and number literals). For Swift Xcode colors them the same as plain text.

Steps to Reproduce:
For Objective-C type the following into Xcode:

id array = @[item1, item2, item3];
id dictionary = @[key1: item1, key2: item2, key3: item3];


For Swift type the following into Xcode:

let array = [item1, item2, item3]
let dictionary = [key1: item1, key2: item2, key3: item3]

Expected Results:
The [] characters in the Swift example to be colored in literal coloring.

Actual Results:
The [] characters in the Swift example are colored the same as the plain text coloring.

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!