plugins/geshi/geshi/pascal.php
author Dan
Fri, 29 May 2009 19:30:59 -0400
changeset 2 9e3258dfae15
parent 0 441963e5b07a
child 3 f3e2bbbd2155
permissions -rwxr-xr-x
Updated GeSHi. w00t.
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
 * pascal.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: Tux (tux@inamil.cz)
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
     6
 * Copyright: (c) 2004 Tux (http://tux.a4.cz/), Nigel McNie (http://qbnz.com/highlighter)
2
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
     7
 * Release Version: 1.0.8.2
0
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
     8
 * Date Started: 2004/07/26
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
 * Pascal 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
 * 2004/11/27 (1.0.2)
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    17
 *  -  Added support for multiple object splitters
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    18
 * 2004/10/27 (1.0.1)
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    19
 *   -  Added support for URLs
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    20
 * 2004/08/05 (1.0.0)
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    21
 *   -  Added support for symbols
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    22
 * 2004/07/27 (0.9.1)
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    23
 *   -  Pascal is OO language. Some new words.
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    24
 * 2004/07/26 (0.9.0)
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    25
 *   -  First Release
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
 * TODO (updated 2004/11/27)
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
 *************************************************************************************
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    31
 *
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    32
 *     This file is part of GeSHi.
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    33
 *
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    34
 *   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
    35
 *   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
    36
 *   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
    37
 *   (at your option) any later version.
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    38
 *
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    39
 *   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
    40
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    41
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    42
 *   GNU General Public License for more details.
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
 *   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
    45
 *   along with GeSHi; if not, write to the Free Software
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    46
 *   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
    47
 *
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    48
 ************************************************************************************/
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    49
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    50
$language_data = array (
2
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    51
    'LANG_NAME' => 'Pascal',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    52
    'COMMENT_SINGLE' => array(1 => '//'),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    53
    'COMMENT_MULTI' => array('{' => '}','(*' => '*)'),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    54
    'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    55
    'QUOTEMARKS' => array('"'),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    56
    'HARDQUOTE' => array("'", "'"),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    57
    'HARDESCAPE' => array("''"),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    58
    'ESCAPE_CHAR' => '\\',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    59
    'KEYWORDS' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    60
        1 => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    61
            'absolute','asm','assembler','begin','break','case','catch','cdecl',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    62
            'const','constructor','default','destructor','div','do','downto',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    63
            'else','end','except','export','exports','external','far',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    64
            'finalization','finally','for','forward','function','goto','if',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    65
            'implementation','in','index','inherited','initialization','inline',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    66
            'interface','interrupt','label','library','mod','name','not','of',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    67
            'or','overload','override','private','procedure','program',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    68
            'property','protected','public','published','raise','repeat',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    69
            'resourcestring','shl','shr','stdcall','stored','switch','then',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    70
            'to','try','type','unit','until','uses','var','while','xor'
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    71
            ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    72
        2 => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    73
            'nil', 'false', 'true',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    74
            ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    75
        3 => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    76
            'abs','and','arc','arctan','blockread','blockwrite','chr','dispose',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    77
            'cos','eof','eoln','exp','get','ln','new','odd','ord','ordinal',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    78
            'pred','read','readln','sin','sqrt','succ','write','writeln'
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    79
            ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    80
        4 => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    81
            'ansistring','array','boolean','byte','bytebool','char','file',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    82
            'integer','longbool','longint','object','packed','pointer','real',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    83
            'record','set','shortint','smallint','string','union','word'
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    84
            ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    85
        ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    86
    'SYMBOLS' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    87
        ',', ':', '=', '+', '-', '*', '/'
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    88
        ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    89
    'CASE_SENSITIVE' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    90
        GESHI_COMMENTS => false,
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    91
        1 => false,
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    92
        2 => false,
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    93
        3 => false,
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    94
        4 => false,
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    95
        ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    96
    'STYLES' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    97
        'KEYWORDS' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    98
            1 => 'color: #000000; font-weight: bold;',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    99
            2 => 'color: #000000; font-weight: bold;',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   100
            3 => 'color: #000066;',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   101
            4 => 'color: #000066; font-weight: bold;'
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   102
            ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   103
        'COMMENTS' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   104
            1 => 'color: #666666; font-style: italic;',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   105
            'MULTI' => 'color: #666666; font-style: italic;'
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   106
            ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   107
        'ESCAPE_CHAR' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   108
            0 => 'color: #000099; font-weight: bold;',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   109
            'HARD' => 'color: #000099; font-weight: bold;'
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   110
            ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   111
        'BRACKETS' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   112
            0 => 'color: #009900;'
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   113
            ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   114
        'STRINGS' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   115
            0 => 'color: #ff0000;',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   116
            'HARD' => 'color: #ff0000;'
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   117
            ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   118
        'NUMBERS' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   119
            0 => 'color: #cc66cc;'
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   120
            ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   121
        'METHODS' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   122
            1 => 'color: #0066ee;'
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   123
            ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   124
        'SYMBOLS' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   125
            0 => 'color: #339933;'
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   126
            ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   127
        'REGEXPS' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   128
            ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   129
        'SCRIPT' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   130
            )
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   131
        ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   132
    'URLS' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   133
        1 => '',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   134
        2 => '',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   135
        3 => '',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   136
        4 => ''
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   137
        ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   138
    'OOLANG' => true,
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   139
    'OBJECT_SPLITTERS' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   140
        1 => '.'
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   141
        ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   142
    'REGEXPS' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   143
        ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   144
    'STRICT_MODE_APPLIES' => GESHI_NEVER,
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   145
    'SCRIPT_DELIMITERS' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   146
        ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   147
    'HIGHLIGHT_STRICT_BLOCK' => array(
0
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   148
        ),
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   149
    'TAB_WIDTH' => 4
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   150
);
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   151
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   152
?>