Visual Studio 2012: Syntax Highlighting is turning off and on

c++, visual-studio-2012

Solution

I know this is a while ago but I have had this same problem appearing randomly until just now.

It would disable when the last line in a file was a single line comment. (// blah blah). As soon as i removed that the text highlighting worked again!

Problem

I'm using VS2012 and I'm quite happy with it. But the problem is, whem I'm coding in C++, that the syntax highlighting is turning off an on all over again. Sometimes, the highlighting is off and I have to reload the file. Also, it highlighting is quite slow. Does anyone know how to fix it?

Original source