KXStudio Website https://kx.studio/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

oracle8.php 12KB

11 years ago
11 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496
  1. <?php
  2. /*************************************************************************************
  3. * oracle8.php
  4. * -----------
  5. * Author: Guy Wicks (Guy.Wicks@rbs.co.uk)
  6. * Copyright: (c) 2004 Nigel McNie (http://qbnz.com/highlighter)
  7. * Release Version: 1.0.8.11
  8. * Date Started: 2004/06/04
  9. *
  10. * Oracle 8 language file for GeSHi.
  11. *
  12. * CHANGES
  13. * -------
  14. * 2005/01/29 (1.0.0)
  15. * - First Release
  16. *
  17. * TODO (updated 2004/11/27)
  18. * -------------------------
  19. *
  20. *************************************************************************************
  21. *
  22. * This file is part of GeSHi.
  23. *
  24. * GeSHi is free software; you can redistribute it and/or modify
  25. * it under the terms of the GNU General Public License as published by
  26. * the Free Software Foundation; either version 2 of the License, or
  27. * (at your option) any later version.
  28. *
  29. * GeSHi is distributed in the hope that it will be useful,
  30. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  31. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  32. * GNU General Public License for more details.
  33. *
  34. * You should have received a copy of the GNU General Public License
  35. * along with GeSHi; if not, write to the Free Software
  36. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  37. *
  38. ************************************************************************************/
  39. $language_data = array (
  40. 'LANG_NAME' => 'Oracle 8 SQL',
  41. 'COMMENT_SINGLE' => array(1 => '--'),
  42. 'COMMENT_MULTI' => array('/*' => '*/'),
  43. 'CASE_KEYWORDS' => GESHI_CAPS_UPPER,
  44. 'QUOTEMARKS' => array("'", '"', '`'),
  45. 'ESCAPE_CHAR' => '\\',
  46. 'KEYWORDS' => array(
  47. //Put your package names here - e.g. select distinct ''''|| lower(name) || ''',' from user_source;
  48. // 6 => array(
  49. // ),
  50. //Put your table names here - e.g. select distinct ''''|| lower(table_name) || ''',' from user_tables;
  51. // 5 => array(
  52. // ),
  53. //Put your view names here - e.g. select distinct ''''|| lower(view_name) || ''',' from user_views;
  54. // 4 => array(
  55. // ),
  56. //Put your table field names here - e.g. select distinct ''''|| lower(column_name) || ''',' from user_tab_columns;
  57. // 3 => array(
  58. // ),
  59. //Put ORACLE reserved keywords here (8.1.7). I like mine uppercase.
  60. 1 => array(
  61. 'ABS',
  62. 'ACCESS',
  63. 'ACOS',
  64. 'ADD',
  65. 'ADD_MONTHS',
  66. 'ALL',
  67. 'ALTER',
  68. 'ANALYZE',
  69. 'AND',
  70. 'ANY',
  71. 'ARRAY',
  72. 'AS',
  73. 'ASC',
  74. 'ASCII',
  75. 'ASIN',
  76. 'ASSOCIATE',
  77. 'AT',
  78. 'ATAN',
  79. 'ATAN2',
  80. 'AUDIT',
  81. 'AUTHID',
  82. 'AVG',
  83. 'BEGIN',
  84. 'BETWEEN',
  85. 'BFILENAME',
  86. 'BINARY_INTEGER',
  87. 'BITAND',
  88. 'BODY',
  89. 'BOOLEAN',
  90. 'BULK',
  91. 'BY',
  92. 'CALL',
  93. 'CASCADE',
  94. 'CASE',
  95. 'CEIL',
  96. 'CHAR',
  97. 'CHAR_BASE',
  98. 'CHARTOROWID',
  99. 'CHECK',
  100. 'CHR',
  101. 'CLOSE',
  102. 'CLUSTER',
  103. 'COALESCE',
  104. 'COLLECT',
  105. 'COLUMN',
  106. 'COMMENT',
  107. 'COMMIT',
  108. 'COMPRESS',
  109. 'CONCAT',
  110. 'CONNECT',
  111. 'CONSTANT',
  112. 'CONSTRAINT',
  113. 'CONSTRAINTS',
  114. 'CONTEXT',
  115. 'CONTROLFILE',
  116. 'CONVERT',
  117. 'CORR',
  118. 'COS',
  119. 'COSH',
  120. 'COST',
  121. 'COUNT',
  122. 'COVAR_POP',
  123. 'COVAR_SAMP',
  124. 'CREATE',
  125. 'CUME_DIST',
  126. 'CURRENT',
  127. 'CURRVAL',
  128. 'CURSOR',
  129. 'DATABASE',
  130. 'DATE',
  131. 'DAY',
  132. 'DECIMAL',
  133. 'DECLARE',
  134. 'DECODE',
  135. 'DEFAULT',
  136. 'DELETE',
  137. 'DENSE_RANK',
  138. 'DEREF',
  139. 'DESC',
  140. 'DIMENSION',
  141. 'DIRECTORY',
  142. 'DISASSOCIATE',
  143. 'DISTINCT',
  144. 'DO',
  145. 'DROP',
  146. 'DUMP',
  147. 'ELSE',
  148. 'ELSIF',
  149. 'EMPTY_BLOB',
  150. 'EMPTY_CLOB',
  151. 'END',
  152. 'EXCEPTION',
  153. 'EXCLUSIVE',
  154. 'EXEC',
  155. 'EXECUTE',
  156. 'EXISTS',
  157. 'EXIT',
  158. 'EXP',
  159. 'EXPLAIN',
  160. 'EXTENDS',
  161. 'EXTRACT',
  162. 'FALSE',
  163. 'FETCH',
  164. 'FILE',
  165. 'FIRST_VALUE',
  166. 'FLOAT',
  167. 'FLOOR',
  168. 'FOR',
  169. 'FORALL',
  170. 'FROM',
  171. 'FUNCTION',
  172. 'GOTO',
  173. 'GRANT',
  174. 'GREATEST',
  175. 'GROUP',
  176. 'GROUPING',
  177. 'HAVING',
  178. 'HEAP',
  179. 'HEXTORAW',
  180. 'HOUR',
  181. 'IDENTIFIED',
  182. 'IF',
  183. 'IMMEDIATE',
  184. 'IN',
  185. 'INCREMENT',
  186. 'INDEX',
  187. 'INDEXTYPE',
  188. 'INDICATOR',
  189. 'INITCAP',
  190. 'INITIAL',
  191. 'INSERT',
  192. 'INSTR',
  193. 'INSTRB',
  194. 'INTEGER',
  195. 'INTERFACE',
  196. 'INTERSECT',
  197. 'INTERVAL',
  198. 'INTO',
  199. 'IS',
  200. 'ISOLATION',
  201. 'JAVA',
  202. 'KEY',
  203. 'LAG',
  204. 'LAST_DAY',
  205. 'LAST_VALUE',
  206. 'LEAD',
  207. 'LEAST',
  208. 'LENGTH',
  209. 'LENGTHB',
  210. 'LEVEL',
  211. 'LIBRARY',
  212. 'LIKE',
  213. 'LIMITED',
  214. 'LINK',
  215. 'LN',
  216. 'LOCK',
  217. 'LOG',
  218. 'LONG',
  219. 'LOOP',
  220. 'LOWER',
  221. 'LPAD',
  222. 'LTRIM',
  223. 'MAKE_REF',
  224. 'MATERIALIZED',
  225. 'MAX',
  226. 'MAXEXTENTS',
  227. 'MIN',
  228. 'MINUS',
  229. 'MINUTE',
  230. 'MLSLABEL',
  231. 'MOD',
  232. 'MODE',
  233. 'MODIFY',
  234. 'MONTH',
  235. 'MONTHS_BETWEEN',
  236. 'NATURAL',
  237. 'NATURALN',
  238. 'NEW',
  239. 'NEW_TIME',
  240. 'NEXT_DAY',
  241. 'NEXTVAL',
  242. 'NLS_CHARSET_DECL_LEN',
  243. 'NLS_CHARSET_ID',
  244. 'NLS_CHARSET_NAME',
  245. 'NLS_INITCAP',
  246. 'NLS_LOWER',
  247. 'NLS_UPPER',
  248. 'NLSSORT',
  249. 'NOAUDIT',
  250. 'NOCOMPRESS',
  251. 'NOCOPY',
  252. 'NOT',
  253. 'NOWAIT',
  254. 'NTILE',
  255. 'NULL',
  256. 'NULLIF',
  257. 'NUMBER',
  258. 'NUMBER_BASE',
  259. 'NUMTODSINTERVAL',
  260. 'NUMTOYMINTERVAL',
  261. 'NVL',
  262. 'NVL2',
  263. 'OCIROWID',
  264. 'OF',
  265. 'OFFLINE',
  266. 'ON',
  267. 'ONLINE',
  268. 'OPAQUE',
  269. 'OPEN',
  270. 'OPERATOR',
  271. 'OPTION',
  272. 'OR',
  273. 'ORDER',
  274. 'ORGANIZATION',
  275. 'OTHERS',
  276. 'OUT',
  277. 'OUTLINE',
  278. 'PACKAGE',
  279. 'PARTITION',
  280. 'PCTFREE',
  281. 'PERCENT_RANK',
  282. 'PLAN',
  283. 'PLS_INTEGER',
  284. 'POSITIVE',
  285. 'POSITIVEN',
  286. 'POWER',
  287. 'PRAGMA',
  288. 'PRIMARY',
  289. 'PRIOR',
  290. 'PRIVATE',
  291. 'PRIVILEGES',
  292. 'PROCEDURE',
  293. 'PROFILE',
  294. 'PUBLIC',
  295. 'RAISE',
  296. 'RANGE',
  297. 'RANK',
  298. 'RATIO_TO_REPORT',
  299. 'RAW',
  300. 'RAWTOHEX',
  301. 'REAL',
  302. 'RECORD',
  303. 'REF',
  304. 'REFTOHEX',
  305. 'REGR_AVGX',
  306. 'REGR_AVGY',
  307. 'REGR_COUNT',
  308. 'REGR_INTERCEPT',
  309. 'REGR_R2',
  310. 'REGR_SLOPE',
  311. 'REGR_SXX',
  312. 'REGR_SXY',
  313. 'REGR_SYY',
  314. 'RELEASE',
  315. 'RENAME',
  316. 'REPLACE',
  317. 'RESOURCE',
  318. 'RETURN',
  319. 'RETURNING',
  320. 'REVERSE',
  321. 'REVOKE',
  322. 'ROLE',
  323. 'ROLLBACK',
  324. 'ROUND',
  325. 'ROW',
  326. 'ROW_NUMBER',
  327. 'ROWID',
  328. 'ROWIDTOCHAR',
  329. 'ROWNUM',
  330. 'ROWS',
  331. 'ROWTYPE',
  332. 'RPAD',
  333. 'RTRIM',
  334. 'SAVEPOINT',
  335. 'SCHEMA',
  336. 'SECOND',
  337. 'SEGMENT',
  338. 'SELECT',
  339. 'SEPERATE',
  340. 'SEQUENCE',
  341. 'SESSION',
  342. 'SET',
  343. 'SHARE',
  344. 'SIGN',
  345. 'SIN',
  346. 'SINH',
  347. 'SIZE',
  348. 'SMALLINT',
  349. 'SOUNDEX',
  350. 'SPACE',
  351. 'SQL',
  352. 'SQLCODE',
  353. 'SQLERRM',
  354. 'SQRT',
  355. 'START',
  356. 'STATISTICS',
  357. 'STDDEV',
  358. 'STDDEV_POP',
  359. 'STDDEV_SAMP',
  360. 'STOP',
  361. 'SUBSTR',
  362. 'SUBSTRB',
  363. 'SUBTYPE',
  364. 'SUCCESSFUL',
  365. 'SUM',
  366. 'SYNONYM',
  367. 'SYS_CONTEXT',
  368. 'SYS_GUID',
  369. 'SYSDATE',
  370. 'SYSTEM',
  371. 'TABLE',
  372. 'TABLESPACE',
  373. 'TAN',
  374. 'TANH',
  375. 'TEMPORARY',
  376. 'THEN',
  377. 'TIME',
  378. 'TIMESTAMP',
  379. 'TIMEZONE_ABBR',
  380. 'TIMEZONE_HOUR',
  381. 'TIMEZONE_MINUTE',
  382. 'TIMEZONE_REGION',
  383. 'TIMING',
  384. 'TO',
  385. 'TO_CHAR',
  386. 'TO_DATE',
  387. 'TO_LOB',
  388. 'TO_MULTI_BYTE',
  389. 'TO_NUMBER',
  390. 'TO_SINGLE_BYTE',
  391. 'TRANSACTION',
  392. 'TRANSLATE',
  393. 'TRIGGER',
  394. 'TRIM',
  395. 'TRUE',
  396. 'TRUNC',
  397. 'TRUNCATE',
  398. 'TYPE',
  399. 'UI',
  400. 'UID',
  401. 'UNION',
  402. 'UNIQUE',
  403. 'UPDATE',
  404. 'UPPER',
  405. 'USE',
  406. 'USER',
  407. 'USERENV',
  408. 'USING',
  409. 'VALIDATE',
  410. 'VALUE',
  411. 'VALUES',
  412. 'VAR_POP',
  413. 'VAR_SAMP',
  414. 'VARCHAR',
  415. 'VARCHAR2',
  416. 'VARIANCE',
  417. 'VIEW',
  418. 'VSIZE',
  419. 'WHEN',
  420. 'WHENEVER',
  421. 'WHERE',
  422. 'WHILE',
  423. 'WITH',
  424. 'WORK',
  425. 'WRITE',
  426. 'YEAR',
  427. 'ZONE'
  428. )
  429. ),
  430. 'SYMBOLS' => array(
  431. '(', ')', '=', '<', '>', '|', '+', '-', '*', '/', ','
  432. ),
  433. 'CASE_SENSITIVE' => array(
  434. GESHI_COMMENTS => false,
  435. 1 => false,
  436. // 3 => false,
  437. // 4 => false,
  438. // 5 => false,
  439. // 6 => false
  440. ),
  441. 'STYLES' => array(
  442. 'KEYWORDS' => array(
  443. 1 => 'color: #993333; font-weight: bold; text-transform: uppercase;'
  444. //Add the styles for groups 3-6 here when used
  445. ),
  446. 'COMMENTS' => array(
  447. 1 => 'color: #808080; font-style: italic;'
  448. ),
  449. 'ESCAPE_CHAR' => array(
  450. 0 => 'color: #000099; font-weight: bold;'
  451. ),
  452. 'BRACKETS' => array(
  453. 0 => 'color: #66cc66;'
  454. ),
  455. 'STRINGS' => array(
  456. 0 => 'color: #ff0000;'
  457. ),
  458. 'NUMBERS' => array(
  459. 0 => 'color: #cc66cc;'
  460. ),
  461. 'METHODS' => array(
  462. 1 => 'color: #ff0000;'
  463. ),
  464. 'SYMBOLS' => array(
  465. 0 => 'color: #66cc66;'
  466. ),
  467. 'SCRIPT' => array(
  468. ),
  469. 'REGEXPS' => array(
  470. )
  471. ),
  472. 'URLS' => array(
  473. 1 => '',
  474. // 3 => '',
  475. // 4 => '',
  476. // 5 => '',
  477. // 6 => ''
  478. ),
  479. 'OOLANG' => false,
  480. 'OBJECT_SPLITTERS' => array(
  481. ),
  482. 'REGEXPS' => array(
  483. ),
  484. 'STRICT_MODE_APPLIES' => GESHI_NEVER,
  485. 'SCRIPT_DELIMITERS' => array(
  486. ),
  487. 'HIGHLIGHT_STRICT_BLOCK' => array(
  488. )
  489. );
  490. ?>