plugins/geshi/geshi/dos.php
author Dan
Fri, 29 May 2009 19:40:15 -0400
changeset 3 f3e2bbbd2155
parent 2 9e3258dfae15
permissions -rw-r--r--
Updated to latest GeSHi, 1.0.8.4, released May 23, 2009.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
     1
<?php
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
     2
/*************************************************************************************
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
     3
 * dos.php
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
     4
 * -------
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
     5
 * Author: Alessandro Staltari (staltari@geocities.com)
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
     6
 * Copyright: (c) 2005 Alessandro Staltari (http://www.geocities.com/SiliconValley/Vista/8155/)
3
f3e2bbbd2155 Updated to latest GeSHi, 1.0.8.4, released May 23, 2009.
Dan
parents: 2
diff changeset
     7
 * Release Version: 1.0.8.4
0
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
     8
 * Date Started: 2005/07/05
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
     9
 *
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    10
 * DOS language file for GeSHi.
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    11
 *
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    12
 * CHANGES
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    13
 * -------
2
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    14
 * 2008/05/23 (1.0.7.22)
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    15
 *   -  Added description of extra language features (SF#1970248)
0
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    16
 * 2005/07/05 (1.0.0)
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    17
 *  -  First Release
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    18
 *
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    19
 * TODO (updated 2005/07/05)
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    20
 * -------------------------
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    21
 *
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    22
 * - Highlight pipes and redirection (do we really need this?)
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    23
 * - Add missing keywords.
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    24
 * - Find a good hyperlink for keywords.
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    25
 * - Improve styles.
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    26
 *
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    27
 * KNOWN ISSUES (updated 2005/07/07)
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    28
 * ---------------------------------
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    29
 *
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    30
 * - Doesn't even try to handle spaces in variables name or labels (I can't
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    31
 *   find a reliable way to establish if a sting is a name or not, in some
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    32
 *   cases it depends on the contex or enviroment status).
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    33
 * - Doesn't handle %%[letter] pseudo variable used inside FOR constructs
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    34
 *   (it should be done only into its scope: how to handle variable it?).
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    35
 * - Doesn't handle %~[something] pseudo arguments.
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    36
 * - If the same keyword is placed at the end of the line and the
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    37
 *   beginning of the next, the second occourrence is not highlighted
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    38
 *   (this should be a GeSHi bug, not related to the language definition).
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    39
 * - I can't avoid to have keyword highlighted even when they are not used
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    40
 *   as keywords but, for example, as arguments to the echo command.
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    41
 *
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    42
 *************************************************************************************
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    43
 *
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    44
 *     This file is part of GeSHi.
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    45
 *
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    46
 *   GeSHi is free software; you can redistribute it and/or modify
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    47
 *   it under the terms of the GNU General Public License as published by
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    48
 *   the Free Software Foundation; either version 2 of the License, or
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    49
 *   (at your option) any later version.
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    50
 *
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    51
 *   GeSHi is distributed in the hope that it will be useful,
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    52
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    53
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    54
 *   GNU General Public License for more details.
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    55
 *
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    56
 *   You should have received a copy of the GNU General Public License
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    57
 *   along with GeSHi; if not, write to the Free Software
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    58
 *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    59
 *
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    60
 ************************************************************************************/
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    61
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    62
$language_data = array (
2
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    63
    'LANG_NAME' => 'DOS',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    64
    'COMMENT_SINGLE' => array(),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    65
    'COMMENT_MULTI' => array(),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    66
    //DOS comment lines
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    67
    'COMMENT_REGEXP' => array(1 => "/^\s*@?REM.*$/mi"),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    68
    'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    69
    'QUOTEMARKS' => array(),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    70
    'ESCAPE_CHAR' => '',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    71
    'KEYWORDS' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    72
        /* Flow control keywords */
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    73
        1 => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    74
            'if', 'else', 'goto', 'shift',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    75
            'for', 'in', 'do',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    76
            'call', 'exit'
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    77
            ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    78
        /* IF statement keywords */
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    79
        2 => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    80
            'not', 'exist', 'errorlevel',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    81
            'defined',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    82
            'equ', 'neq', 'lss', 'leq', 'gtr', 'geq'
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    83
            ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    84
        /* Internal commands */
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    85
        3 => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    86
            'cd', 'md', 'rd', 'chdir', 'mkdir', 'rmdir', 'dir',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    87
            'del', 'copy', 'move', 'ren', 'rename',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    88
            'echo',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    89
            'setlocal', 'endlocal', 'set',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    90
            'pause',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    91
            'pushd', 'popd', 'title', 'verify'
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    92
            ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    93
        /* Special files */
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    94
        4 => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    95
            'prn', 'nul', 'lpt3', 'lpt2', 'lpt1', 'con',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    96
            'com4', 'com3', 'com2', 'com1', 'aux'
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    97
            )
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    98
        ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    99
    'SYMBOLS' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   100
        '(', ')', '@', '%'
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   101
        ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   102
    'CASE_SENSITIVE' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   103
        GESHI_COMMENTS => false,
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   104
        1 => false,
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   105
        2 => false,
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   106
        3 => false,
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   107
        4 => false
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   108
        ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   109
    'STYLES' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   110
        'KEYWORDS' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   111
            1 => 'color: #00b100; font-weight: bold;',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   112
            2 => 'color: #000000; font-weight: bold;',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   113
            3 => 'color: #b1b100; font-weight: bold;',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   114
            4 => 'color: #0000ff; font-weight: bold;'
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   115
            ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   116
        'COMMENTS' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   117
            1 => 'color: #808080; font-style: italic;'
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   118
            ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   119
        'ESCAPE_CHAR' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   120
            0 => 'color: #ff0000; font-weight: bold;'
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   121
            ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   122
        'BRACKETS' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   123
            0 => 'color: #66cc66;'
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   124
            ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   125
        'STRINGS' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   126
            0 => 'color: #ff0000;'
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   127
            ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   128
        'NUMBERS' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   129
            0 => 'color: #cc66cc;'
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   130
            ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   131
        'METHODS' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   132
            ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   133
        'SYMBOLS' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   134
            0 => 'color: #33cc33;',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   135
            1 => 'color: #33cc33;'
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   136
            ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   137
        'SCRIPT' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   138
            ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   139
        'REGEXPS' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   140
            0 => 'color: #b100b1; font-weight: bold;',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   141
            1 => 'color: #448844;',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   142
            2 => 'color: #448888;'
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   143
            )
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   144
        ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   145
    'OOLANG' => false,
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   146
    'OBJECT_SPLITTERS' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   147
        ),
0
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   148
    'URLS' => array(
2
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   149
        1 => 'http://www.ss64.com/nt/{FNAMEL}.html',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   150
        2 => 'http://www.ss64.com/nt/{FNAMEL}.html',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   151
        3 => 'http://www.ss64.com/nt/{FNAMEL}.html',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   152
        4 => 'http://www.ss64.com/nt/{FNAMEL}.html'
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   153
        ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   154
    'REGEXPS' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   155
        /* Label */
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   156
        0 => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   157
/*            GESHI_SEARCH => '((?si:[@\s]+GOTO\s+|\s+:)[\s]*)((?<!\n)[^\s\n]*)',*/
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   158
            GESHI_SEARCH => '((?si:[@\s]+GOTO\s+|\s+:)[\s]*)((?<!\n)[^\n]*)',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   159
            GESHI_REPLACE => '\\2',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   160
            GESHI_MODIFIERS => 'si',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   161
            GESHI_BEFORE => '\\1',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   162
            GESHI_AFTER => ''
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   163
        ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   164
        /* Variable assignement */
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   165
        1 => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   166
/*            GESHI_SEARCH => '(SET[\s]+(?si:\/A[\s]+|\/P[\s]+|))([^=\s\n]+)([\s]*=)',*/
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   167
            GESHI_SEARCH => '(SET[\s]+(?si:\/A[\s]+|\/P[\s]+|))([^=\n]+)([\s]*=)',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   168
            GESHI_REPLACE => '\\2',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   169
            GESHI_MODIFIERS => 'si',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   170
            GESHI_BEFORE => '\\1',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   171
            GESHI_AFTER => '\\3'
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   172
            ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   173
        /* Arguments or variable evaluation */
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   174
        2 => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   175
/*            GESHI_SEARCH => '(%)([\d*]|[^%\s]*(?=%))((?<!%\d)%|)',*/
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   176
            GESHI_SEARCH => '(%(?:%(?=[a-z0-9]))?)([\d*]|(?:~[adfnpstxz]*(?:$\w+:)?)?[a-z0-9](?!\w)|[^%\n]*(?=%))((?<!%\d)%|)',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   177
            GESHI_REPLACE => '\\2',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   178
            GESHI_MODIFIERS => 'si',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   179
            GESHI_BEFORE => '\\1',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   180
            GESHI_AFTER => '\\3'
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   181
            )
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   182
        ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   183
    'STRICT_MODE_APPLIES' => GESHI_NEVER,
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   184
    'SCRIPT_DELIMITERS' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   185
        ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   186
    'HIGHLIGHT_STRICT_BLOCK' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   187
        ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   188
    'TAB_WIDTH' => 4,
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   189
    'PARSER_CONTROL' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   190
        'KEYWORDS' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   191
            4 => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   192
                'DISALLOWED_BEFORE' => '(?<!\w)'
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   193
                )
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   194
            )
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   195
        )
0
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   196
);
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   197
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   198
?>