This is an error in the native version of Xcode, if you try to open Xcode through Rosseta, the error highlighting is correct again.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: