#65 Comments are miscolored near -> and ()

php-mode-1.5.0
open
nobody
5
2009-02-08
2009-02-08
ncloud
No

If you type the following line in php-mode (version 1.5.0):

// $foo->bar->foo->bar ();

The first "bar" and second "foo" appear in the font-lock-variable-name-face (yellow).

The second "bar" appears in the "default" face (white).

The rest of the line appears in font-lock-comment-face (red(?) by default, cyan due to customization on my system).

The whole line should appear in font-lock-comment-face. The same thing happens with multi-line comments. It is very distracting to have wrong colored words inside of commented out lines of code.

Thanks!

Discussion

  • ncloud
    ncloud
    2009-02-10

    The same miscoloration happens with strings.

    For example:

    $x = "$this->bar";

    "bar" has the incorrect face.