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 323008 - Comments on the same line has header includes aren't highlighted C, but ARE on #define, etc.
Comments on the same line has header includes aren't highlighted C, but ARE o...
Status: RESOLVED DUPLICATE of bug 137587
Product: gtksourceview
Classification: Platform
Component: General
git master
Other FreeBSD
: Normal trivial
: ---
Assigned To: GTK Sourceview maintainers
GTK Sourceview maintainers
Depends on: 312651
Blocks:
 
 
Reported: 2005-12-02 12:23 UTC by Chris Done
Modified: 2006-07-26 12:32 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Chris Done 2005-12-02 12:23:55 UTC
Distribution/Version: 6.0-RELEASE

Set the highlight mode to C.

#include <stdio.h> // Some comment.

The comment should be highlighted as a comment, but is left the same colour as
the #include, whereas on:

#define SOMENAME 1 // Some comment.

The comment is highlighted.
Comment 1 Dean Sas 2005-12-03 10:43:05 UTC
Confirmed. This is happening for me also in 2.12.1
Comment 2 Paolo Borelli 2005-12-03 11:42:24 UTC
Yes this is known gtksourceview problem, the current highlighting engine is not
able to highlight nested contexts (a comment inside a define).

A more powerful highlighting engine is under developement to solve this and many
other similar issues.
Comment 3 Paolo Maggi 2006-07-26 12:32:35 UTC

*** This bug has been marked as a duplicate of 137587 ***