GNOME Bugzilla – Bug 739684
Small problem in the GtkSourceLanguage parser, triggered with cuda.lang
Last modified: 2021-07-05 11:01:46 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.
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.