#133 Incorrect syntax highlight of PHP variables

open
nobody
None
5
2005-07-31
2005-07-31
Stepan Roh
No

Version 3.3.

Test case (first apostrophe is considered part of
variable name):

<?php
echo $item.' XXX';
?>

Compare with correctly highlighted (no space between
first apostrophe and XXX):

<?php
echo $item.'XXX';
?>

Works also with " and bunch of other characters (in
fact almost all).

Discussion

  • Shadow God
    Shadow God
    2005-10-19

    Logged In: YES
    user_id=149880

    i hacked me a new php.jsf file, using crimson editor's
    syntax file (win32 tabbed editor, www.crimsoneditor.com) for
    a source of functions/keywords.

    http://hacksess.com/~shadowgod/joe/php.jsf

    all respective credits from the other editor's file are in
    there as well.

    and it looks like it properly treats the '.' seperation
    correctly.

     
  • Joe Allen
    Joe Allen
    2006-03-05

    Logged In: YES
    user_id=1000448

    I've fixed this in cvs, but I need to integrate all these
    user supplied php highlighters.