Menu

#2975 PHP code is not highlighted properly in "${code}"

minor bug
closed-fixed
5
2008-01-23
2007-10-23
No

In the following example, the "$" character is blue, while "{HOSTNAME}" is /pink/, like the rest of the string:
define('MENU', array('home' => "http://${HOSTNAME}/"));

Discussion

  • Alan Ezust

    Alan Ezust - 2007-10-23

    Logged In: YES
    user_id=935841
    Originator: NO

    Is this with jedit 4.3pre11?

     
  • Victor Engmark

    Victor Engmark - 2007-10-24

    Logged In: YES
    user_id=508519
    Originator: YES

    No, 4.2 final. It's the only version available in Ubuntu Gutsy by default.

     
  • Alan Ezust

    Alan Ezust - 2007-10-24

    Logged In: YES
    user_id=935841
    Originator: NO

    This is fixed in 4.3pre11.

     
  • Alan Ezust

    Alan Ezust - 2007-10-24
    • status: open --> closed-fixed
     
  • Victor Engmark

    Victor Engmark - 2007-11-01

    Logged In: YES
    user_id=508519
    Originator: YES

    It's not fixed in 4.3pre11 - I get the exact same result after upgrading. I tried changing the color for LITERAL2 tokens, and '"http://' and '{HOSTNAME}' still get the same color.

     
  • Victor Engmark

    Victor Engmark - 2007-11-01
    • status: closed-fixed --> closed
     
  • Victor Engmark

    Victor Engmark - 2007-11-01

    Logged In: YES
    user_id=508519
    Originator: YES

    ezust: Could you send me an example which should work?

     
  • Victor Engmark

    Victor Engmark - 2007-11-01
    • status: closed --> open
     
  • daniel hahler

    daniel hahler - 2008-01-04
    • assigned_to: nobody --> blueyed
     
  • daniel hahler

    daniel hahler - 2008-01-23

    Logged In: YES
    user_id=663176
    Originator: NO

    Thank you for reporting this bug.

    It's now fixed in SVN (r11626) with other related improvements, e.g. "{$foo->bar}" and stuff like that.

    The fix will be released in jEdit 4.3pre13.

     
  • daniel hahler

    daniel hahler - 2008-01-23
    • status: open --> closed-fixed
     

Log in to post a comment.