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 739684 - Small problem in the GtkSourceLanguage parser, triggered with cuda.lang
Small problem in the GtkSourceLanguage parser, triggered with cuda.lang
Status: RESOLVED OBSOLETE
Product: gtksourceview
Classification: Platform
Component: General
git master
Other Linux
: Normal normal
: ---
Assigned To: GTK Sourceview maintainers
GTK Sourceview maintainers
Depends on:
Blocks:
 
 
Reported: 2014-11-05 19:52 UTC by Sébastien Wilmet
Modified: 2021-07-05 11:01 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Sébastien Wilmet 2014-11-05 19:52:35 UTC
cuda.lang contains this context:

> <context id="kernel-call" style-ref="latex:display-math">

It produces a warning when opening a cuda file:

> style 'latex:display-math' not defined

The warning comes from gtksourcelanguage-parser-2.c, and there is a XXX comment in the code (i.e. a FIXME). The reference manual reads:

style-ref (optional)
Highlighting style for this context. Value of this attribute may be id of a style defined in current lang file, or id of a style defined in other files prefixed with corresponding language id, e.g. "def:comment".

So "latex:display-math" is normally valid, there shouldn't be a warning. Moreover it actually works, for example the tango style scheme defines a color for latex:display-math, and it is shown correctly in a cuda file.
Comment 1 GNOME Infrastructure Team 2021-07-05 11:01:46 UTC
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org.
As part of that, we are mass-closing older open tickets in bugzilla.gnome.org
which have not seen updates for a longer time (resources are unfortunately
quite limited so not every ticket can get handled).

If you can still reproduce the situation described in this ticket in a recent
and supported software version, then please follow
  https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines
and create a new ticket at
  https://gitlab.gnome.org/GNOME/gtksourceview/-/issues/

Thank you for your understanding and your help.