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 363114 - Latex Syntax Highliting dont work correct
Latex Syntax Highliting dont work correct
Status: RESOLVED FIXED
Product: gtksourceview
Classification: Platform
Component: General
1.8.x
Other All
: Normal normal
: ---
Assigned To: Yevgen Muntyan
GTK Sourceview maintainers
Depends on: 140097
Blocks:
 
 
Reported: 2006-10-18 11:25 UTC by Michael Trunner
Modified: 2007-07-26 13:24 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14



Description Michael Trunner 2006-10-18 11:25:58 UTC
Please describe the problem:
The Latex Syntax highliting highlights \usepackage \begin and co. wrong.

Steps to reproduce:
1. write \usepackage[utf8]{inputenc}
2. add a space like this \usepac kage[utf8]{inputenc}
3. and remove it \usepackage[utf8]{inputenc}


Actual results:
Per default on the first step the color should be violet
After adding and removing the space it is green and bold (that is the wrong highliting)

Expected results:
It's violet again

Does this happen every time?
Yes

Other information:
Comment 1 Michael Trunner 2006-10-18 11:31:52 UTC
https://launchpad.net/products/gedit/+bug/66725
Comment 2 Sebastian Breier 2006-10-19 12:20:29 UTC
I can confirm this bug (see Launchpad).

Michael and I found out that it only happens on non-English language settings. He uses German language, I use English by default. When I switched to German, I had the bug as well... but not when I worked in English language.
Comment 3 Sebastian Breier 2006-10-19 12:30:29 UTC
Bug persists in gedit 2.16.1 (Ubuntu edgy).
Comment 4 Paolo Maggi 2006-12-11 12:24:32 UTC
Seems another problem with pattern priority. 
With different locales, the result from gtk_text_tag_table_foreach() is different,
and thus the syntax_items list in GtkSourceBuffer is built differently.

Depending on bug 140097.  Should be automatically fixed when we get that one.
Comment 5 Sebastian Breier 2007-02-15 13:51:19 UTC
Still in gtk 2.10.9.
Comment 6 Paolo Borelli 2007-07-26 13:24:43 UTC
fixed in gtksourceview 2