VirtualBox

Changeset 3018 in kBuild


Ignore:
Timestamp:
Jan 7, 2017 12:06:39 AM (8 years ago)
Author:
bird
Message:

kdev.e: slickedit 21 fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SlickEdit/kdev.e

    r3015 r3018  
    191191    {
    192192        /* multiline */
    193 #if __VERSION__ >= 14.0
     193#if __VERSION__ >= 21.0
     194        COMMENT_TYPE aComments[];
     195        GetComments(aComments, "M", sLexer);
     196        for (i = 0; i < aComments._length(); i++)
     197            if (!aComments[i].isDocumentation)
     198            {
     199                sLeft   = aComments[i].delim1;
     200                sRight  = aComments[i].delim2;
     201                iColumn = aComments[i].startcol;
     202                if (sLeft != '' && sRight != '')
     203                    return true;
     204            }
     205#else
     206# if __VERSION__ >= 14.0
    194207        _str aComments[] = null;
    195208        GetComments(aComments, "mlcomment", sLexer);
    196209        for (i = 0; i < aComments._length(); i++)
    197             if (!pos("documentation", aComments[i]) > 0)
     210            if (pos("documentation", aComments[i]) <= 0)
    198211            {
    199212                sLine = aComments[i];
     
    201214            }
    202215        if (sLine != '')
    203 #else
     216# else
    204217        rc = _ini_get_value(slick_path_search("user.vlx"), sLexer, 'mlcomment', sLine);
    205218        if (rc)
    206219            rc = _ini_get_value(slick_path_search("vslick.vlx"), sLexer, 'mlcomment', sLine);
    207220        if (!rc)
    208 #endif
     221# endif
    209222        {
    210223            sLeft  = strip(word(sLine, 1));
     
    213226                return true;
    214227        }
     228#endif
    215229
    216230        /* failed, try single line. */
    217 #if __VERSION__ >= 14.0
     231#if __VERSION__ >= 21.0
     232        GetComments(aComments, "L", sLexer);
     233        for (i = 0; i < aComments._length(); i++)
     234            if (!aComments[i].isDocumentation)
     235            {
     236                sLeft   = aComments[i].delim1;
     237                sRight  = '';
     238                iColumn = aComments[i].startcol;
     239                if (sLeft != '')
     240                    return true;
     241            }
     242#else
     243# if __VERSION__ >= 14.0
    218244        GetComments(aComments, "linecomment", sLexer)
    219245        for (i = 0; i < aComments._length(); i++)
    220             if (!pos("documentation", aComments[i]) > 0)
     246            if (pos("documentation", aComments[i]) <= 0)
    221247            {
    222248                sLine = aComments[i];
     
    224250            }
    225251        if (sLine != '')
    226 #else
     252# else
    227253        rc = _ini_get_value(slick_path_search("user.vlx"), sLexer, 'linecomment', sLine);
    228254        if (rc)
    229255            rc = _ini_get_value(slick_path_search("vslick.vlx"), sLexer, 'linecomment', sLine);
    230256        if (!rc)
    231 #endif
     257# endif
    232258        {
    233259            sLeft = strip(word(sLine, 1));
     
    240266                return true;
    241267        }
     268#endif
    242269    }
    243270
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette