Technical Support Forums

Technical Support Forums » Araneae

Highlighting bug (3 posts)


About this Topic

Tags

  1. Madis
    Member
    Posted 3 years ago

    In PHP highlight there is a bug. Test this code i.e:

    <?php
    
    $something == '\\';
    
    /*
    The \ made it to think that it didn't end, but it did
     as there are \\ next of eachother I guess (it works in PHP and is used in lot of places)
    */
  2. Anonymous

    Posted 2 years ago

    To make it more simple - all the stuff applies, however \\ renders as backslash.
    http://www.php.net/manual/en/language.types.string.php

  3. Madis
    Member
    Posted 2 years ago

    Somewhat of a solution seems to be:

    Changing
    <rule from="PHP" to="String2" style="strings">\'</rule>
    to
    <rule from="PHP" to="String2" style="strings">[^\\]\'</rule>

    However, the \\ shows up in blue, but that's nothing compared to what it could have done before.

    EDIT: Mhmm, adds some other ill effects too
    i.e $CPG_SESS['theme'] is all same coloured.


Reply

(required)