]>
src.bluestatic.org Git - viewsvn.git/blob - includes/geshi/geshi/sql.php
2 /*************************************************************************************
5 * Author: Nigel McNie (nigel@geshi.org)
6 * Copyright: (c) 2004 Nigel McNie (http://qbnz.com/highlighter)
7 * Release Version: 1.0.7.19
8 * Date Started: 2004/06/04
10 * SQL language file for GeSHi.
15 * - Added support for multiple object splitters
17 * - Added "`" string delimiter
18 * - Added "#" single comment starter
20 * - Added support for symbols
21 * - Added many more keywords (mostly MYSQL keywords)
25 * TODO (updated 2004/11/27)
26 * -------------------------
28 * * Split this to several sql files - mysql-sql, ansi-sql etc
30 *************************************************************************************
32 * This file is part of GeSHi.
34 * GeSHi is free software; you can redistribute it and/or modify
35 * it under the terms of the GNU General Public License as published by
36 * the Free Software Foundation; either version 2 of the License, or
37 * (at your option) any later version.
39 * GeSHi is distributed in the hope that it will be useful,
40 * but WITHOUT ANY WARRANTY; without even the implied warranty of
41 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
42 * GNU General Public License for more details.
44 * You should have received a copy of the GNU General Public License
45 * along with GeSHi; if not, write to the Free Software
46 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
48 ************************************************************************************/
50 $language_data = array (
52 'COMMENT_SINGLE' => array(1 =>'--', 2 => '#'),
53 'COMMENT_MULTI' => array('/*' => '*/'),
55 'QUOTEMARKS' => array("'", '"', '`'),
56 'ESCAPE_CHAR' => '\\',
59 'ALL', 'ASC', 'AS', 'ALTER', 'AND', 'ADD', 'AUTO_INCREMENT',
60 'BETWEEN', 'BINARY', 'BOTH', 'BY', 'BOOLEAN',
61 'CHANGE', 'CHECK', 'COLUMNS', 'COLUMN', 'CROSS','CREATE',
62 'DATABASES', 'DATABASE', 'DATA', 'DELAYED', 'DESCRIBE', 'DESC', 'DISTINCT', 'DELETE', 'DROP', 'DEFAULT',
63 'ENCLOSED', 'ESCAPED', 'EXISTS', 'EXPLAIN',
64 'FIELDS', 'FIELD', 'FLUSH', 'FOR', 'FOREIGN', 'FUNCTION', 'FROM',
67 'IGNORE', 'INDEX', 'INFILE', 'INSERT', 'INNER', 'INTO', 'IDENTIFIED', 'IN', 'IS', 'IF',
70 'LEADING', 'LIKE', 'LIMIT', 'LINES', 'LOAD', 'LOCAL', 'LOCK', 'LOW_PRIORITY', 'LEFT', 'LANGUAGE',
72 'NATURAL', 'NOT', 'NULL', 'NEXTVAL',
73 'OPTIMIZE', 'OPTION', 'OPTIONALLY', 'ORDER', 'OUTFILE', 'OR', 'OUTER', 'ON',
74 'PROCEEDURE','PROCEDURAL', 'PRIMARY',
75 'READ', 'REFERENCES', 'REGEXP', 'RENAME', 'REPLACE', 'RETURN', 'REVOKE', 'RLIKE', 'RIGHT',
76 'SHOW', 'SONAME', 'STATUS', 'STRAIGHT_JOIN', 'SELECT', 'SETVAL', 'SET',
77 'TABLES', 'TEMINATED', 'TO', 'TRAILING','TRUNCATE', 'TABLE', 'TEMPORARY', 'TRIGGER', 'TRUSTED',
78 'UNIQUE', 'UNLOCK', 'USE', 'USING', 'UPDATE', 'UNSIGNED',
79 'VALUES', 'VARIABLES', 'VIEW',
80 'WITH', 'WRITE', 'WHERE',
86 '(', ')', '=', '<', '>', '|'
88 'CASE_SENSITIVE' => array(
89 GESHI_COMMENTS
=> false,
94 1 => 'color: #993333; font-weight: bold;'
97 1 => 'color: #808080; font-style: italic;',
98 2 => 'color: #808080; font-style: italic;',
99 'MULTI' => 'color: #808080; font-style: italic;'
101 'ESCAPE_CHAR' => array(
102 0 => 'color: #000099; font-weight: bold;'
105 0 => 'color: #66cc66;'
108 0 => 'color: #ff0000;'
111 0 => 'color: #cc66cc;'
116 0 => 'color: #66cc66;'
124 'OBJECT_SPLITTERS' => array(
128 'STRICT_MODE_APPLIES' => GESHI_NEVER
,
129 'SCRIPT_DELIMITERS' => array(
131 'HIGHLIGHT_STRICT_BLOCK' => array(