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