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 317769 - SQL Syntax Highlighting Incorrectly Highlights Comments
SQL Syntax Highlighting Incorrectly Highlights Comments
Status: RESOLVED FIXED
Product: bluefish
Classification: Other
Component: application
1.0.4
Other All
: Normal minor
: ---
Assigned To: Bluefish Maintainer(s)
Bluefish Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2005-10-02 20:53 UTC by Mackenzie Lee Ryan
Modified: 2005-10-06 05:14 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Mackenzie Lee Ryan 2005-10-02 20:53:50 UTC
Please describe the problem:
When working with .sql scripts, the syntax highlighting feature will interpret 
other patterns it finds within a comment.

Steps to reproduce:
Insert a SQL comment into the document with other recognized patterns inside it, 
such as:

-- Don't type this.

Actual results:
The first part of the comment is correctly grey, but from the apostrophe onward 
it formats as a string literal with red italics.

Expected results:
The formatting for a comment should override other patterns inside it.

Does this happen every time?
Yes.

Other information:
This is easily fixed. The Comment pattern is almost near the end of the priority 
list. If you go in to the Preferences for Synatx Highlighting and move it up to 
the top (I placed it right after Braces), it formats correctly.
Comment 1 Jim Hayward 2005-10-06 05:14:37 UTC
Thanks. I made this change to the default SQL highlighting pattern in the 1.0.x
branch of CVS.