GNOME Bugzilla – Bug 137587
Comments color bug for langage C preprocessor
Last modified: 2014-02-15 12:53:14 UTC
when you mark a parts of code with a preprocessor test always false, the code is marked as a comment. normal case: #if 0 <commented code> #endif when this case use more test, the different level of imbricated #if #endif is not supported. bad case: #if 0 /* start of comment detected */ # ifndef TEST <commented code 1> # endif /* graphical end of comment, BUG */ <commented code 2> #endif /* logical end of comment */ In this case, the commented code 2 is displayed like not commented code.
This is a known problem. But it cannot be solved in the version of gtksourceview due to some limits of the highlighting engine. We are working on an improved highlighting engine that will solve this kind of problems.
*** Bug 115614 has been marked as a duplicate of this bug. ***
*** Bug 323008 has been marked as a duplicate of this bug. ***
Fixed in new engine.