A tumblelog CMS built on AJAX, PHP and MySQL.

genero.php 11KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465
  1. <?php
  2. /*************************************************************************************
  3. * genero.php
  4. * ----------
  5. * Author: Lars Gersmann (lars.gersmann@gmail.com)
  6. * Copyright: (c) 2007 Lars Gersmann, Nigel McNie (http://qbnz.com/highlighter/)
  7. * Release Version: 1.0.7.21
  8. * CVS Revision Version: $Revision: 1.4 $
  9. *
  10. * Genero (FOURJ's Genero 4GL) language file for GeSHi.
  11. *
  12. * CHANGES
  13. * -------
  14. * 2007/07/01 (1.0.0)
  15. * - Initial release
  16. *
  17. *************************************************************************************
  18. *
  19. * This file is part of GeSHi.
  20. *
  21. * GeSHi is free software; you can redistribute it and/or modify
  22. * it under the terms of the GNU General Public License as published by
  23. * the Free Software Foundation; either version 2 of the License, or
  24. * (at your option) any later version.
  25. *
  26. * GeSHi is distributed in the hope that it will be useful,
  27. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  28. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  29. * GNU General Public License for more details.
  30. *
  31. * You should have received a copy of the GNU General Public License
  32. * along with GeSHi; if not, write to the Free Software
  33. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  34. *
  35. ************************************************************************************/
  36. $language_data = array (
  37. 'LANG_NAME' => 'genero',
  38. 'COMMENT_SINGLE' => array(1 => '--', 2 => '#'),
  39. 'COMMENT_MULTI' => array('{' => '}'),
  40. 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
  41. 'QUOTEMARKS' => array("'", '"'),
  42. 'ESCAPE_CHAR' => '\\',
  43. 'KEYWORDS' => array(
  44. 1 => array(
  45. "ABSOLUTE",
  46. "ACCEPT",
  47. "ACTION",
  48. "ADD",
  49. "AFTER",
  50. "ALL",
  51. "ALTER",
  52. "AND",
  53. "ANY",
  54. "APPEND",
  55. "APPLICATION",
  56. "AS",
  57. "AT",
  58. "ATTRIBUTE",
  59. "ATTRIBUTES",
  60. "AUDIT",
  61. "AVG",
  62. "BEFORE",
  63. "BEGIN",
  64. "BETWEEN",
  65. "BORDER",
  66. "BORDER",
  67. "BOTTOM",
  68. "BREAKPOINT",
  69. "BUFFER",
  70. "BUFFERED",
  71. "BY",
  72. "CALL",
  73. "CANCEL",
  74. "CASE",
  75. "CENTURY",
  76. "CHANGE",
  77. "CHECK",
  78. "CLEAR",
  79. "CLIPPED",
  80. "CLOSE",
  81. "CLUSTER",
  82. "COLUMN",
  83. "COLUMNS",
  84. "COMMAND",
  85. "COMMENT",
  86. "COMMIT",
  87. "COMMITTED",
  88. "CONCURRENT ",
  89. "CONNECT",
  90. "CONNECTION",
  91. "CONSTANT",
  92. "CONSTRAINED",
  93. "CONSTRAINT",
  94. "CONSTRUCT",
  95. "CONTINUE",
  96. "CONTROL",
  97. "COUNT",
  98. "CREATE",
  99. "CROSS",
  100. "CURRENT",
  101. "DATABASE",
  102. "DBA",
  103. "DEC",
  104. "DECLARE",
  105. "DEFAULT",
  106. "DEFAULTS",
  107. "DEFER",
  108. "DEFINE",
  109. "DELETE",
  110. "DELIMITER",
  111. "DESCRIBE",
  112. "DESTINATION",
  113. "DIM",
  114. "DIALOG",
  115. "DIMENSION",
  116. "DIRTY",
  117. "DISCONNECT",
  118. "DISPLAY",
  119. "DISTINCT",
  120. "DORMANT",
  121. "DOWN",
  122. "DROP",
  123. "DYNAMIC",
  124. "ELSE",
  125. "END",
  126. "ERROR",
  127. "ESCAPE",
  128. "EVERY",
  129. "EXCLUSIVE",
  130. "EXECUTE",
  131. "EXISTS",
  132. "EXIT",
  133. "EXPLAIN",
  134. "EXTEND",
  135. "EXTENT",
  136. "EXTERNAL",
  137. "FETCH",
  138. "FGL_DRAWBOX",
  139. "FIELD",
  140. "FIELD_TOUCHED",
  141. "FILE",
  142. "FILL",
  143. "FINISH",
  144. "FIRST",
  145. "FLOAT",
  146. "FLUSH",
  147. "FOR",
  148. "FOREACH",
  149. "FORM",
  150. "FORMAT",
  151. "FOUND",
  152. "FRACTION",
  153. "FREE",
  154. "FROM",
  155. "FULL",
  156. "FUNCTION",
  157. "GET_FLDBUF",
  158. "GLOBALS",
  159. "GO",
  160. "GOTO",
  161. "GRANT",
  162. "GROUP",
  163. "HAVING",
  164. "HEADER",
  165. "HELP",
  166. "HIDE",
  167. "HOLD",
  168. "HOUR",
  169. "IDLE",
  170. "IF",
  171. "IMAGE",
  172. "IMMEDIATE",
  173. "IN",
  174. "INDEX",
  175. "INFIELD",
  176. "INITIALIZE",
  177. "INNER",
  178. "INPUT",
  179. "INSERT",
  180. "INTERRUPT",
  181. "INTERVAL",
  182. "INTO",
  183. "INVISIBLE",
  184. "IS",
  185. "ISOLATION",
  186. "JOIN",
  187. "KEEP",
  188. "KEY",
  189. "LABEL",
  190. "LAST",
  191. "LEFT",
  192. "LENGTH",
  193. "LET",
  194. "LIKE",
  195. "LINE",
  196. "LINENO",
  197. "LINES",
  198. "LOAD",
  199. "LOCATE",
  200. "LOCK",
  201. "LOG",
  202. "LSTR",
  203. "MAIN",
  204. "MARGIN",
  205. "MATCHES",
  206. "MAX",
  207. "MAXCOUNT",
  208. "MDY",
  209. "MEMORY",
  210. "MENU",
  211. "MESSAGE",
  212. "MIN",
  213. "MINUTE",
  214. "MOD",
  215. "MODE",
  216. "MODIFY",
  217. "MONEY",
  218. "NAME",
  219. "NEED",
  220. "NEXT",
  221. "NO",
  222. "NORMAL",
  223. "NOT",
  224. "NOTFOUND",
  225. "NULL",
  226. "NUMERIC",
  227. "OF",
  228. "ON",
  229. "OPEN",
  230. "OPTION",
  231. "OPTIONS",
  232. "OR",
  233. "ORDER",
  234. "OTHERWISE",
  235. "OUTER",
  236. "OUTPUT",
  237. "PAGE",
  238. "PAGENO",
  239. "PAUSE",
  240. "PERCENT",
  241. "PICTURE",
  242. "PIPE",
  243. "PRECISION",
  244. "PREPARE",
  245. "PREVIOUS",
  246. "PRINT",
  247. "PRINTER",
  248. "PRINTX",
  249. "PRIOR",
  250. "PRIVILEGES",
  251. "PROCEDURE",
  252. "PROGRAM",
  253. "PROMPT",
  254. "PUBLIC",
  255. "PUT",
  256. "QUIT",
  257. "READ",
  258. "REAL",
  259. "RECORD",
  260. "RECOVER",
  261. "RED ",
  262. "RELATIVE",
  263. "RENAME",
  264. "REOPTIMIZATION",
  265. "REPEATABLE",
  266. "REPORT",
  267. "RESOURCE",
  268. "RETURN",
  269. "RETURNING",
  270. "REVERSE",
  271. "REVOKE",
  272. "RIGHT",
  273. "ROLLBACK",
  274. "ROLLFORWARD",
  275. "ROW",
  276. "ROWS",
  277. "RUN",
  278. "SCHEMA",
  279. "SCREEN",
  280. "SCROLL",
  281. "SECOND",
  282. "SELECT",
  283. "SERIAL",
  284. "SET",
  285. "SFMT",
  286. "SHARE",
  287. "SHIFT",
  288. "SHOW",
  289. "SIGNAL ",
  290. "SIZE",
  291. "SKIP",
  292. "SLEEP",
  293. "SOME",
  294. "SPACE",
  295. "SPACES",
  296. "SQL",
  297. "SQLERRMESSAGE",
  298. "SQLERROR",
  299. "SQLSTATE",
  300. "STABILITY",
  301. "START",
  302. "STATISTICS",
  303. "STEP",
  304. "STOP",
  305. "STYLE",
  306. "SUM",
  307. "SYNONYM",
  308. "TABLE",
  309. "TEMP",
  310. "TERMINATE",
  311. "TEXT",
  312. "THEN",
  313. "THROUGH",
  314. "THRU",
  315. "TO",
  316. "TODAY",
  317. "TOP",
  318. "TRAILER",
  319. "TRANSACTION ",
  320. "UNBUFFERED",
  321. "UNCONSTRAINED",
  322. "UNDERLINE",
  323. "UNION",
  324. "UNIQUE",
  325. "UNITS",
  326. "UNLOAD",
  327. "UNLOCK",
  328. "UP",
  329. "UPDATE",
  330. "USE",
  331. "USER",
  332. "USING",
  333. "VALIDATE",
  334. "VALUE",
  335. "VALUES",
  336. "VARCHAR",
  337. "VIEW",
  338. "WAIT",
  339. "WAITING",
  340. "WARNING",
  341. "WHEN",
  342. "WHENEVER",
  343. "WHERE",
  344. "WHILE",
  345. "WINDOW",
  346. "WITH",
  347. "WITHOUT",
  348. "WORDWRAP",
  349. "WORK",
  350. "WRAP"
  351. ),
  352. 2 => array(
  353. '&AMP;IFDEF', '&AMP;ENDIF'
  354. ),
  355. 3 => array(
  356. "ARRAY",
  357. "BYTE",
  358. "CHAR",
  359. "CHARACTER",
  360. "CURSOR",
  361. "DATE",
  362. "DATETIME",
  363. "DECIMAL",
  364. "DOUBLE",
  365. "FALSE",
  366. "INT",
  367. "INTEGER",
  368. "SMALLFLOAT",
  369. "SMALLINT",
  370. "STRING",
  371. "TIME",
  372. "TRUE"
  373. ),
  374. 4 => array(
  375. "BLACK",
  376. "BLINK",
  377. "BLUE",
  378. "BOLD",
  379. "ANSI",
  380. "ASC",
  381. "ASCENDING",
  382. "ASCII",
  383. "CYAN",
  384. "DESC",
  385. "DESCENDING",
  386. "GREEN",
  387. "MAGENTA",
  388. "OFF",
  389. "WHITE",
  390. "YELLOW",
  391. "YEAR",
  392. "DAY",
  393. "MONTH",
  394. "WEEKDAY"
  395. ),
  396. ),
  397. 'SYMBOLS' => array(
  398. '+', '-', '*', '?', '=', '/', '%', '>', '<', '^', '!', '|', ':',
  399. '(', ')', '[', ']'
  400. ),
  401. 'CASE_SENSITIVE' => array(
  402. GESHI_COMMENTS => true,
  403. 1 => false,
  404. 2 => false,
  405. 3 => false,
  406. 4 => false,
  407. ),
  408. 'STYLES' => array(
  409. 'KEYWORDS' => array(
  410. 1 => 'color: #0600FF;',
  411. 2 => 'color: #0000FF; font-weight: bold;',
  412. 3 => 'color: #008000;',
  413. 4 => 'color: #FF0000;',
  414. ),
  415. 'COMMENTS' => array(
  416. 1 => 'color: #008080; font-style: italic;',
  417. 2 => 'color: #008080;',
  418. 'MULTI' => 'color: #008080; font-style: italic;'
  419. ),
  420. 'ESCAPE_CHAR' => array(
  421. 0 => 'color: #008080; font-weight: bold;'
  422. ),
  423. 'BRACKETS' => array(
  424. 0 => 'color: #000000;'
  425. ),
  426. 'STRINGS' => array(
  427. 0 => 'color: #808080;'
  428. ),
  429. 'NUMBERS' => array(
  430. 0 => 'color: #FF0000;'
  431. ),
  432. 'METHODS' => array(
  433. 1 => 'color: #0000FF;',
  434. 2 => 'color: #0000FF;'
  435. ),
  436. 'SYMBOLS' => array(
  437. 0 => 'color: #008000;'
  438. ),
  439. 'REGEXPS' => array(
  440. ),
  441. 'SCRIPT' => array(
  442. )
  443. ),
  444. 'URLS' => array(
  445. 1 => '',
  446. 2 => '',
  447. 3 => '',
  448. 4 => ''
  449. ),
  450. 'OOLANG' => true,
  451. 'OBJECT_SPLITTERS' => array(
  452. 1 => '.'
  453. ),
  454. 'REGEXPS' => array(
  455. ),
  456. 'STRICT_MODE_APPLIES' => GESHI_NEVER,
  457. 'SCRIPT_DELIMITERS' => array(
  458. ),
  459. 'HIGHLIGHT_STRICT_BLOCK' => array(
  460. )
  461. );
  462. ?>