thanks very much for your reply.
I have just filed a bug report with an Xcode sample project you guys can use to test.
It's a very basic Cocoa app that lets you open files and lexical highlight them when modifying them.
To reproduce issues 1 and 2 just open any .h or .m file in the project itself.
Is there maybe an older version of clang that may not have those issues?
Xcode itself is pretty good at highlighting, and I assume it uses clang for it.
Assuming this is the case, there must be a way to do proper highlighting… Any advice?