Reply to syntax highlighting broken in xcode 11? I remember this bug exists since Xcode 4! And still happening at 12.5.1. There's no way to reproduce it, just happens usually after a time working in the project. The more files a project has, the more often this happens. Developer Tools & Services Xcode Aug ’21