#2842 PHP syntax highlighting broken on escaped strings

closed-duplicate
nobody
5
2007-04-17
2007-04-04
Ovidiu Lixandru
No

After updating from 4.3pre8 to 4.3pre9, the PHP syntax highlighting gets broken after encountering escaped characters.
Example:

$string = "something\"";
$highlighting = "is_now_broken";

Discussion

  • Kirk
    Kirk
    2007-04-08

    Logged In: YES
    user_id=1764176
    Originator: NO

    Yeah. I only use Jedit for PHP, and this already caused me some serious problems. I spent a very long time error checking my code only to discover that although PHP displayed correctly in 4.2, it displays completely wrong in 4.3.
    I really want to use 4.3 so that I can use the FTP version 0.9.1, but I do not feel that I can program with the colors going haywire.

     
  • Logged In: YES
    user_id=1279787
    Originator: NO

    I think I fixed this on my own system yesterday by making a small change to the php.xml file in the jedit modes dir.

    Change the line that starts with:

    <RULES SET="PHP" ESCAPE="\"

    into:

    <RULES SET="PHP" ESCAPE="\\"

    ... That worked for me. I'm not really sure if this is the correct way to fix it - didn't take the time yet to see if having to escape the escape character is a feature or a bug ;-)

     
  • daniel hahler
    daniel hahler
    2007-04-17

    • status: open --> closed-duplicate