PHP Object operator highlighting weird

PHP Object operator highlighting weird

6
NewbieNewbie
6

    Apr 12, 2007#1

    When using PHP objects, it's similar to the Perl object syntax:

    [php]$object->method()
    $object->property[/php]

    Anyway, the -> operator, even though I've defined it in my word file, will only highlight the dash, but not both the dash AND the bracket when I do stuff like this:

    [php]$object->method()
    $object->_private
    $object->property[/php]

    but if I follow the bracket with something like quotes, forward slash, space, and some other characters:

    [php]$object->"string"
    $object->//comment
    $object-> space_before_method()[/php]

    Then the -> operator highlights properly.

    Is there a way to ensure that the -> operator is highlighted regardless of what comes after it?

    Thanks,

    Jon

    6,676579
    Grand MasterGrand Master
    6,676579

      Apr 12, 2007#2

      That's a problem of the set of delimiter characters - see /Delimiters = in your word file for language PHP. The double quote, slash and space characters are all delimiters. The hypen is also a delimiter, but not > and not a-z_. So -> cannot be highlighted correct in this situation because the highligting engine "reads" for example the 3 "words": "$object" and "-" and ">_private".

      Adding > to the delimiters will help here, but maybe will have some other bad effects elsewhere.
      Best regards from an UC/UE/UES for Windows user from Austria