After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 137587 - Comments color bug for langage C preprocessor
Comments color bug for langage C preprocessor
Status: RESOLVED FIXED
Product: gtksourceview
Classification: Platform
Component: General
git master
Other Linux
: Normal minor
: ---
Assigned To: GTK Sourceview maintainers
GTK Sourceview maintainers
: 115614 323008 (view as bug list)
Depends on: 312651
Blocks:
 
 
Reported: 2004-03-18 12:45 UTC by Jardon Sébastien
Modified: 2014-02-15 12:53 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10



Description Jardon Sébastien 2004-03-18 12:45:19 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.
Comment 1 Paolo Maggi 2004-03-18 13:27:33 UTC
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.
Comment 2 Paolo Maggi 2004-07-20 10:08:50 UTC
*** Bug 115614 has been marked as a duplicate of this bug. ***
Comment 3 Paolo Maggi 2006-07-26 12:32:35 UTC
*** Bug 323008 has been marked as a duplicate of this bug. ***
Comment 4 Yevgen Muntyan 2007-09-04 16:56:22 UTC
Fixed in new engine.