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 352701 - Syntax highlighting does not respect escaped quotes
Syntax highlighting does not respect escaped quotes
Status: RESOLVED FIXED
Product: bluefish
Classification: Other
Component: application
development (SVN TRUNK)
Other All
: Normal minor
: ---
Assigned To: Bluefish Maintainer(s)
Bluefish Maintainer(s)
: 387103 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-08-24 17:12 UTC by Klaus Vormweg
Modified: 2006-12-29 16:48 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Testcase 1- double quotes (59 bytes, text/plain)
2006-08-26 19:57 UTC, Klaus Vormweg
Details
Testcase 2 - single quotes (59 bytes, text/plain)
2006-08-26 19:57 UTC, Klaus Vormweg
Details

Description Klaus Vormweg 2006-08-24 17:12:12 UTC
Please describe the problem:
syntax highlighting in bluefish 1.0.6rc2 does not show escaped quotes (double and single) correctly. The quoted string 'ends' at the escaped quote

Steps to reproduce:
1. open a html or php file with quoted strings in it
2. turn on syntax highlighting 
3. add an escaped quote inside a quoted string

Actual results:
The quoted string 'ends' at the escaped quote

Expected results:
The quoted string should enclose the escaped quote

Does this happen every time?
yes

Other information:
Comment 1 Jim Hayward 2006-08-25 03:16:55 UTC
Is this a new bug in 1.0.6rc2 or did you also see this in previous versions? I have not checked the changelog yet, but I can't recall any changes being made to either the HTML or PHP highlighting patterns.
Comment 2 Klaus Vormweg 2006-08-25 16:03:38 UTC
That must have been an older bug. I have reinstalled 1.0.6rc1 and 1.0.5, renamed my ~/.bluefish and have not been able to get a working combination back again. 

I rarely update my ~/.bluefish/highlighting file because I have modified a few patterns - and I believe that does not happen automatically. But I did update it after installing 1.0.6rc2, so that bug popping up at that time must have been coincidence
Comment 3 Jim Hayward 2006-08-26 15:10:31 UTC
Can you attach sample HTML and PHP files that show the problem?
Comment 4 Klaus Vormweg 2006-08-26 19:57:10 UTC
Created attachment 71676 [details]
Testcase 1- double quotes
Comment 5 Klaus Vormweg 2006-08-26 19:57:40 UTC
Created attachment 71677 [details]
Testcase 2 - single quotes
Comment 6 Klaus Vormweg 2006-08-26 20:00:24 UTC
I have attached two php files for single and double quotes. I have omitted a html testcase because on second thought it does not make sense to escape quotes in pure html, afaik no browser would understand that.
Comment 7 Jim Hayward 2006-08-27 02:42:25 UTC
Try replacing the two lines below in your ~/.bluefish/highlighting file. See if the changes break anything.

replace these:

patterns: php:String (single quoted):0:'.*?'::2:^PHP Block$:#009900::1:1:
patterns: php:String (double quoted):0:".*?"::2:^PHP Block$:#009900::1:1:

with:

patterns: php:String (single quoted):0:':':1:^PHP Block$:#009900::1:1:
patterns: php:String (double quoted):0:":":1:^PHP Block$:#009900::1:1:
Comment 8 Klaus Vormweg 2006-08-29 18:55:10 UTC
This fix resolves the problem and I have not noticed any unwanted side effects after a day of working on php files with bluefish
Comment 9 Daniel Leidert 2006-12-29 16:48:10 UTC
*** Bug 387103 has been marked as a duplicate of this bug. ***