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 387103 - syntax-highlighting for PHP strings do not support escaped quotes
syntax-highlighting for PHP strings do not support escaped quotes
Status: RESOLVED DUPLICATE of bug 352701
Product: bluefish
Classification: Other
Component: application
1.0.7
Other All
: Normal minor
: ---
Assigned To: Bluefish Maintainer(s)
Bluefish Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2006-12-18 10:00 UTC by Marcio Rocha Pereira
Modified: 2006-12-29 16:48 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Marcio Rocha Pereira 2006-12-18 10:00:50 UTC
Please describe the problem:
If a PHP file has a string which contais an backlash-escaped quote (as "my\"String\"isnice" ) it will see the string only till the quoted quote

Steps to reproduce:
1. open a php file with a single- ou double-quoted string which contains an escaped single or double quote, accordingly
2. 
3. 


Actual results:
the document after the badly escaped string will be awkwardly highlighted

Expected results:


Does this happen every time?
yep

Other information:
I solved it changing the string pattern from ".*?" to "(\\"|.)*?" and accordingly to single quotes... it does seem to have a little impacte on performance, but maybe not really...
Comment 1 Daniel Leidert 2006-12-29 16:48:10 UTC
As far as I can see, we already fixed this issue. Go to

Edit > Preferences > tab: Syntax highlighting

then choose the "php" filetype and press the <Reset> button. If you made custom changes to the php highlighting pattern, be sure to backup your ${HOME}/.bluefish/highlighting first, so you can play pack your changes.

I'm going to close this report now.

*** This bug has been marked as a duplicate of 352701 ***