plugins/geshi/geshi/sql.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
 * sql.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: Nigel McNie (nigel@geshi.org)
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
     6
 * Copyright: (c) 2004 Nigel McNie (http://qbnz.com/highlighter)
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: 2004/06/04
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
 * SQL 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 additional symbols for highlighting
0
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    16
 * 2004/11/27 (1.0.3)
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.2)
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    19
 *  -  Added "`" string delimiter
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    20
 *  -  Added "#" single comment starter
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    21
 * 2004/08/05 (1.0.1)
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    22
 *  -  Added support for symbols
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    23
 *  -  Added many more keywords (mostly MYSQL keywords)
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    24
 * 2004/07/14 (1.0.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
 * * Add all keywords
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    30
 * * Split this to several sql files - mysql-sql, ansi-sql etc
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
 *************************************************************************************
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
 *     This file is part of GeSHi.
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    35
 *
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    36
 *   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
    37
 *   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
    38
 *   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
    39
 *   (at your option) any later version.
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    40
 *
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    41
 *   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
    42
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    43
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    44
 *   GNU General Public License for more details.
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
 *   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
    47
 *   along with GeSHi; if not, write to the Free Software
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    48
 *   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
    49
 *
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
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
    52
$language_data = array (
2
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    53
    'LANG_NAME' => 'SQL',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    54
    'COMMENT_SINGLE' => array(1 =>'--', 2 => '#'),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    55
    'COMMENT_MULTI' => array('/*' => '*/'),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    56
    'CASE_KEYWORDS' => 1,
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    57
    'QUOTEMARKS' => 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
            'ADD', 'ALL', 'ALTER', 'AND', 'AS', 'ASC',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    62
            'AUTO_INCREMENT', 'BETWEEN', 'BINARY', 'BOOLEAN',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    63
            'BOTH', 'BY', 'CHANGE', 'CHECK', 'COLUMN', 'COLUMNS',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    64
            'CREATE', 'CROSS', 'DATA', 'DATABASE', 'DATABASES',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    65
            'DEFAULT', 'DELAYED', 'DELETE', 'DESC', 'DESCRIBE',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    66
            'DISTINCT', 'DROP', 'ENCLOSED', 'ESCAPED', 'EXISTS',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    67
            'EXPLAIN', 'FIELD', 'FIELDS', 'FLUSH', 'FOR',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    68
            'FOREIGN', 'FROM', 'FULL', 'FUNCTION', 'GRANT',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    69
            'GROUP', 'HAVING', 'IDENTIFIED', 'IF', 'IGNORE',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    70
            'IN', 'INDEX', 'INFILE', 'INNER', 'INSERT', 'INTO',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    71
            'IS', 'JOIN', 'KEY', 'KEYS', 'KILL', 'LANGUAGE',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    72
            'LEADING', 'LEFT', 'LIKE', 'LIMIT', 'LINES', 'LOAD',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    73
            'LOCAL', 'LOCK', 'LOW_PRIORITY', 'MODIFY', 'NATURAL',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    74
            'NEXTVAL', 'NOT', 'NULL', 'ON', 'OPTIMIZE', 'OPTION',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    75
            'OPTIONALLY', 'OR', 'ORDER', 'OUTER', 'OUTFILE',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    76
            'PRIMARY', 'PROCEDURAL', 'PROCEEDURE', 'READ',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    77
            'REFERENCES', 'REGEXP', 'RENAME', 'REPLACE',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    78
            'RETURN', 'REVOKE', 'RIGHT', 'RLIKE', 'SELECT',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    79
            'SET', 'SETVAL', 'SHOW', 'SONAME', 'STATUS',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    80
            'STRAIGHT_JOIN', 'TABLE', 'TABLES', 'TEMINATED',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    81
            'TEMPORARY', 'TO', 'TRAILING', 'TRIGGER', 'TRUNCATE',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    82
            'TRUSTED', 'UNION', 'UNIQUE', 'UNLOCK', 'UNSIGNED',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    83
            'UPDATE', 'USE', 'USING', 'VALUES', 'VARIABLES',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    84
            'VIEW', 'WHERE', 'WITH', 'WRITE', 'XOR', 'ZEROFILL'
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    85
            )
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    86
        ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    87
    'SYMBOLS' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    88
        '(', ')', '=', '<', '>', '|', ',', '.', '+', '-', '*', '/'
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    89
        ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    90
    'CASE_SENSITIVE' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    91
        GESHI_COMMENTS => false,
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    92
        1 => false
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    93
        ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    94
    'STYLES' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    95
        'KEYWORDS' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    96
            1 => 'color: #993333; font-weight: bold;'
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    97
            ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    98
        'COMMENTS' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
    99
            1 => 'color: #808080; font-style: italic;',
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   100
            2 => 'color: #808080; font-style: italic;',
0
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   101
            'MULTI' => 'color: #808080; font-style: italic;'
2
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   102
            ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   103
        'ESCAPE_CHAR' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   104
            0 => 'color: #000099; font-weight: bold;'
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   105
            ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   106
        'BRACKETS' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   107
            0 => 'color: #66cc66;'
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   108
            ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   109
        'STRINGS' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   110
            0 => 'color: #ff0000;'
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   111
            ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   112
        'NUMBERS' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   113
            0 => 'color: #cc66cc;'
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   114
            ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   115
        'METHODS' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   116
            ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   117
        'SYMBOLS' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   118
            0 => 'color: #66cc66;'
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   119
            ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   120
        'SCRIPT' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   121
            ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   122
        'REGEXPS' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   123
            )
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   124
        ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   125
    'URLS' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   126
        1 => ''
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   127
        ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   128
    'OOLANG' => false,
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   129
    'OBJECT_SPLITTERS' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   130
        ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   131
    'REGEXPS' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   132
        ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   133
    'STRICT_MODE_APPLIES' => GESHI_NEVER,
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   134
    'SCRIPT_DELIMITERS' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   135
        ),
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   136
    'HIGHLIGHT_STRICT_BLOCK' => array(
9e3258dfae15 Updated GeSHi. w00t.
Dan
parents: 0
diff changeset
   137
        )
0
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   138
);
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   139
441963e5b07a Initial population - based on GeSHi 1.0.7.20
Dan
parents:
diff changeset
   140
?>