The code above has correct syntax highlighting in Xcode 7. It is mix of Obj-C + Swift:
I\'ve updated project to support
In my case:
In Finder I navigated to user->Library->Developer->Xcode->DerivedData. Close your Xcode Project then Clear DerivedData. It's work for me.
Happy Coding...:)
Fixed. Problem was related to the presence of target in project which is not compiled. So if you have targets e.g. A, B, C and C is not compiled this cause problems with syntax highlighting.
Setting Use Legacy Swift Language Version to YES in the Build Settings helped me to solve similar issue