GNOME Bugzilla – Bug 387103
syntax-highlighting for PHP strings do not support escaped quotes
Last modified: 2006-12-29 16:48:10 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...
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 ***