A tumblelog CMS built on AJAX, PHP and MySQL.

sql.php 4.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. <?php
  2. /*************************************************************************************
  3. * sql.php
  4. * -------
  5. * Author: Nigel McNie (nigel@geshi.org)
  6. * Copyright: (c) 2004 Nigel McNie (http://qbnz.com/highlighter)
  7. * Release Version: 1.0.7.21
  8. * Date Started: 2004/06/04
  9. *
  10. * SQL language file for GeSHi.
  11. *
  12. * CHANGES
  13. * -------
  14. * 2004/11/27 (1.0.3)
  15. * - Added support for multiple object splitters
  16. * 2004/10/27 (1.0.2)
  17. * - Added "`" string delimiter
  18. * - Added "#" single comment starter
  19. * 2004/08/05 (1.0.1)
  20. * - Added support for symbols
  21. * - Added many more keywords (mostly MYSQL keywords)
  22. * 2004/07/14 (1.0.0)
  23. * - First Release
  24. *
  25. * TODO (updated 2004/11/27)
  26. * -------------------------
  27. * * Add all keywords
  28. * * Split this to several sql files - mysql-sql, ansi-sql etc
  29. *
  30. *************************************************************************************
  31. *
  32. * This file is part of GeSHi.
  33. *
  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.
  38. *
  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.
  43. *
  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
  47. *
  48. ************************************************************************************/
  49. $language_data = array (
  50. 'LANG_NAME' => 'SQL',
  51. 'COMMENT_SINGLE' => array(1 =>'--', 2 => '#'),
  52. 'COMMENT_MULTI' => array('/*' => '*/'),
  53. 'CASE_KEYWORDS' => 1,
  54. 'QUOTEMARKS' => array("'", '"', '`'),
  55. 'ESCAPE_CHAR' => '\\',
  56. 'KEYWORDS' => array(
  57. 1 => array(
  58. 'ALL', 'ASC', 'AS', 'ALTER', 'AND', 'ADD', 'AUTO_INCREMENT',
  59. 'BETWEEN', 'BINARY', 'BOTH', 'BY', 'BOOLEAN',
  60. 'CHANGE', 'CHECK', 'COLUMNS', 'COLUMN', 'CROSS','CREATE',
  61. 'DATABASES', 'DATABASE', 'DATA', 'DELAYED', 'DESCRIBE', 'DESC', 'DISTINCT', 'DELETE', 'DROP', 'DEFAULT',
  62. 'ENCLOSED', 'ESCAPED', 'EXISTS', 'EXPLAIN',
  63. 'FIELDS', 'FIELD', 'FLUSH', 'FOR', 'FOREIGN', 'FUNCTION', 'FROM',
  64. 'GROUP', 'GRANT',
  65. 'HAVING',
  66. 'IGNORE', 'INDEX', 'INFILE', 'INSERT', 'INNER', 'INTO', 'IDENTIFIED', 'IN', 'IS', 'IF',
  67. 'JOIN',
  68. 'KEYS', 'KILL','KEY',
  69. 'LEADING', 'LIKE', 'LIMIT', 'LINES', 'LOAD', 'LOCAL', 'LOCK', 'LOW_PRIORITY', 'LEFT', 'LANGUAGE',
  70. 'MODIFY',
  71. 'NATURAL', 'NOT', 'NULL', 'NEXTVAL',
  72. 'OPTIMIZE', 'OPTION', 'OPTIONALLY', 'ORDER', 'OUTFILE', 'OR', 'OUTER', 'ON',
  73. 'PROCEEDURE','PROCEDURAL', 'PRIMARY',
  74. 'READ', 'REFERENCES', 'REGEXP', 'RENAME', 'REPLACE', 'RETURN', 'REVOKE', 'RLIKE', 'RIGHT',
  75. 'SHOW', 'SONAME', 'STATUS', 'STRAIGHT_JOIN', 'SELECT', 'SETVAL', 'SET',
  76. 'TABLES', 'TEMINATED', 'TO', 'TRAILING','TRUNCATE', 'TABLE', 'TEMPORARY', 'TRIGGER', 'TRUSTED',
  77. 'UNIQUE', 'UNLOCK', 'USE', 'USING', 'UPDATE', 'UNSIGNED',
  78. 'VALUES', 'VARIABLES', 'VIEW',
  79. 'WITH', 'WRITE', 'WHERE',
  80. 'ZEROFILL',
  81. 'XOR',
  82. )
  83. ),
  84. 'SYMBOLS' => array(
  85. '(', ')', '=', '<', '>', '|'
  86. ),
  87. 'CASE_SENSITIVE' => array(
  88. GESHI_COMMENTS => false,
  89. 1 => false
  90. ),
  91. 'STYLES' => array(
  92. 'KEYWORDS' => array(
  93. 1 => 'color: #993333; font-weight: bold;'
  94. ),
  95. 'COMMENTS' => array(
  96. 1 => 'color: #808080; font-style: italic;',
  97. 2 => 'color: #808080; font-style: italic;',
  98. 'MULTI' => 'color: #808080; font-style: italic;'
  99. ),
  100. 'ESCAPE_CHAR' => array(
  101. 0 => 'color: #000099; font-weight: bold;'
  102. ),
  103. 'BRACKETS' => array(
  104. 0 => 'color: #66cc66;'
  105. ),
  106. 'STRINGS' => array(
  107. 0 => 'color: #ff0000;'
  108. ),
  109. 'NUMBERS' => array(
  110. 0 => 'color: #cc66cc;'
  111. ),
  112. 'METHODS' => array(
  113. ),
  114. 'SYMBOLS' => array(
  115. 0 => 'color: #66cc66;'
  116. ),
  117. 'SCRIPT' => array(
  118. ),
  119. 'REGEXPS' => array(
  120. )
  121. ),
  122. 'OOLANG' => false,
  123. 'OBJECT_SPLITTERS' => array(
  124. ),
  125. 'REGEXPS' => array(
  126. ),
  127. 'STRICT_MODE_APPLIES' => GESHI_NEVER,
  128. 'SCRIPT_DELIMITERS' => array(
  129. ),
  130. 'HIGHLIGHT_STRICT_BLOCK' => array(
  131. )
  132. );
  133. ?>