Xcode 8.2.1: class attribute in Objective-C @property declaration is incorrectly syntax highlighted

Originator:armadsen
Number:rdar://30735838 Date Originated:27-Feb-2017 10:43 AM
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode 8.2.1 (8C1002)
Classification:Other Bug Reproducible:Always
 
Summary:

In Xcode 8.2.1, when declaring an Objective-C @property with the (relatively new) class attribute, the word class is not colored to match the other attributes.

Steps to Reproduce:
In an Objective-C file, create an @property like so:

@property (nonatomic, readonly, class) id foo;

Expected Results:
nonatomic, readonly, and class should all be colored using the color for keywords in the current color scheme.

Actual Results:
nonatomic and readonly are colored correctly. class is colored using the plain text color.

The attached screenshot and project demonstrate this problem.

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!