I got code like this:
int func(int a)
{
#if 0
if(0==a)
foo();
else
#endif
if(1==a)
bar();
}
According to my color setting, lines between "#if 0" and "#endif" should be grayed, and other lines should be multi-colored. Colors of code maybe correct when I was typing. But, if I open a file including those code, colors will go wrong: lines after "#endif" will be grayed, too. If I indent or unindent of the line "endif", the result will be sometimes OK and sometimes not.
There's no bug if I use preprocessor with no indent. But I think the code above is correct/legal because compiler (GCC 4.7.2) recognizes it.
SE version: v18.0.1.2 (hotfix revision: 33), Linux x86_64
Thanks.