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.

dcl.php 7.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. <?php
  2. /*************************************************************************************
  3. * dcl.php
  4. * --------
  5. * Author: Petr Hendl (petr@hendl.cz)
  6. * Copyright: (c) 2011 Petr Hendl http://hendl.cz/geshi/
  7. * Release Version: 1.0.8.11
  8. * Date Started: 2011/02/17
  9. *
  10. * DCL language file for GeSHi.
  11. *
  12. * CHANGES
  13. * -------
  14. * 2011-02-17 (1.0.8.11)
  15. * - First Release
  16. *
  17. * TODO
  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' => 'DCL',
  41. 'COMMENT_SINGLE' => array('$!', '!'),
  42. 'COMMENT_MULTI' => array(),
  43. 'COMMENT_REGEXP' => array(
  44. 2 => '/(?<=\$)\s*sql\s+.*?(?:quit|exit);?\s*?$/sim' // do not highlight inline sql
  45. ),
  46. 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
  47. 'QUOTEMARKS' => array('"'),
  48. 'HARDESCAPE' => array(),
  49. 'ESCAPE_CHAR' => '',
  50. 'ESCAPE_REGEXP' => array(
  51. 1 => "/''[a-zA-Z\\-_]+'/"
  52. ),
  53. 'KEYWORDS' => array(
  54. 1 => array( // commands
  55. 'ACCOUNTING', 'ALLOCATE', 'ANALYZE', 'APPEND', 'ASSIGN', 'ATTACH', 'BACKUP',
  56. 'CALL', 'CANCEL', 'CHECKSUM', 'CLOSE', 'CONNECT', 'CONTINUE', 'CONVERT',
  57. 'COPY', 'CREATE', 'DEALLOCATE', 'DEASSIGN', 'DEBUG', 'DECK',
  58. 'DECRYPT', 'DEFINE', 'DELETE', 'DEPOSIT', 'DIFFERENCES', 'DIRECTORY',
  59. 'DISABLE', 'AUTOSTART', 'DISCONNECT', 'DISMOUNT', 'DUMP', 'EDIT', 'ENABLE',
  60. 'ENCRYPT', 'ENDSUBROUTINE', 'EOD', 'EOJ', 'EXAMINE', 'EXCHANGE',
  61. 'EXIT', 'FONT', 'GOSUB', 'GOTO', 'HELP', 'IF', 'THEN', 'ELSE', 'ENDIF', 'INITIALIZE', 'INQUIRE',
  62. 'INSTALL', 'JAVA', 'JOB', 'LIBRARY', 'LICENSE', 'LINK', 'LOGIN', 'LOGOUT',
  63. 'MACRO', 'MAIL', 'MERGE', 'MESSAGE', 'MONITOR', 'MOUNT', 'NCS', 'ON', 'OPEN',
  64. 'PASSWORD', 'PATCH', 'PHONE', 'PIPE', 'PPPD', 'PRINT', 'PRODUCT', 'PURGE',
  65. 'READ', 'RECALL', 'RENAME', 'REPLY', 'REQUEST', 'RETURN', 'RMU', 'RUN', 'RUNOFF',
  66. 'SEARCH', 'SET', 'SET AUDIT', 'SET BOOTBLOCK', 'SET BROADCAST',
  67. 'SET CACHE', 'SET CARD_READER', 'SET CLUSTER', 'SET COMMAND', 'SET CONTROL',
  68. 'SET CPU', 'SET DAY', 'SET DEFAULT', 'SET DEVICE', 'SET DIRECTORY',
  69. 'SET DISPLAY', 'SET ENTRY', 'SET FILE', 'SET HOST', 'SET IMAGE', 'SET KEY',
  70. 'SET LOGINS', 'SET MAGTAPE', 'SET MESSAGE', 'SET NETWORK', 'SET ON', 'SET OUTPUT_RATE',
  71. 'SET PASSWORD', 'SET PREFERRED_PATH', 'SET PREFIX', 'SET PRINTER', 'SET PROCESS',
  72. 'SET PROMPT', 'SET PROTECTION', 'SET QUEUE', 'SET RESTART_VALUE',
  73. 'SET RIGHTS_LIST', 'SET RMS_DEFAULT', 'SET ROOT', 'SET SECURITY',
  74. 'SET SERVER ACME_SERVER', 'SET SERVER REGISTRY_SERVER', 'SET SERVER SECURITY_SERVER',
  75. 'SET SHADOW', 'SET SYMBOL', 'SET TERMINAL', 'SET TIME', 'SET VERIFY',
  76. 'SET VOLUME', 'SET WORKING_SET', 'SHOW', 'SHOW AUDIT',
  77. 'SHOW BROADCAST', 'SHOW CLUSTER', 'SHOW CPU', 'SHOW DEFAULT', 'SHOW DEVICES',
  78. 'SHOW DISPLAY', 'SHOW ENTRY', 'SHOW ERROR', 'SHOW FASTPATH', 'SHOW IMAGE',
  79. 'SHOW INTRUSION', 'SHOW KEY', 'SHOW LICENSE', 'SHOW LOGICAL', 'SHOW MEMORY',
  80. 'SHOW NETWORK', 'SHOW PRINTER', 'SHOW PROCESS', 'SHOW PROTECTION', 'SHOW QUEUE',
  81. 'SHOW QUOTA', 'SHOW RMS_DEFAULT', 'SHOW ROOT', 'SHOW SECURITY',
  82. 'SHOW SERVER ACME_SERVER', 'SHOW SERVER REGISTRY_SERVER', 'SHOW SHADOW',
  83. 'SHOW STATUS', 'SHOW SYMBOL', 'SHOW SYSTEM', 'SHOW TERMINAL', 'SHOW TIME',
  84. 'SHOW TRANSLATION', 'SHOW USERS', 'SHOW WORKING_SET', 'SHOW ZONE', 'SORT',
  85. 'SPAWN', 'START', 'STOP', 'SUBMIT', 'SUBROUTINE', 'SYNCHRONIZE', 'TYPE',
  86. 'UNLOCK', 'VIEW', 'WAIT', 'WRITE', 'XAUTH'
  87. ),
  88. 2 => array( // lexical functions
  89. 'F$CONTEXT', 'F$CSID', 'F$CUNITS', 'F$CVSI', 'F$CVTIME', 'F$CVUI',
  90. 'F$DELTA_TIME', 'F$DEVICE', 'F$DIRECTORY', 'F$EDIT', 'F$ELEMENT',
  91. 'F$ENVIRONMENT', 'F$EXTRACT', 'F$FAO', 'F$FID_TO_NAME', 'F$FILE_ATTRIBUTES',
  92. 'F$GETDVI', 'F$GETENV', 'F$GETJPI', 'F$GETQUI', 'F$GETSYI', 'F$IDENTIFIER',
  93. 'F$INTEGER', 'F$LENGTH', 'F$LICENSE', 'F$LOCATE', 'F$MATCH_WILD', 'F$MESSAGE',
  94. 'F$MODE', 'F$MULTIPATH', 'F$PARSE', 'F$PID', 'F$PRIVILEGE', 'F$PROCESS',
  95. 'F$SEARCH', 'F$SETPRV', 'F$STRING', 'F$TIME', 'F$TRNLNM', 'F$TYPE', 'F$UNIQUE',
  96. 'F$USER', 'F$VERIFY'
  97. ),
  98. 3 => array( // special variables etc
  99. 'sql$database', 'P1', 'P2', 'P3', 'P4', 'P5', 'P6', 'P7', 'P8', 'P9',
  100. '$status', '$severity', 'sys$login', 'sys$system',
  101. 'sys$input', 'sys$output', 'sys$pipe'
  102. )
  103. ),
  104. 'SYMBOLS' => array(
  105. '(', ')', '[', ']', '@', '&', '|', '<', '>', '-',
  106. '.eqs.', '.eq.', '.lt.', '.lts.', '.gt.', '.gts.', '.ne.', '.nes.',
  107. '.le.', '.ge.', '.ges.', '.les.',
  108. '.EQS.', '.EQ.', '.LT.', '.LTS.', '.GT.', '.GTS.', '.NE.', '.NES.',
  109. '.LE.', '.GE.', '.GES.', '.LES.',
  110. '.and.', '.or.', '.not.',
  111. '.AND.', '.OR.', '.NOT.',
  112. '==', ':==', '=', ':='
  113. ),
  114. 'CASE_SENSITIVE' => array(
  115. GESHI_COMMENTS => false,
  116. 1 => false,
  117. 2 => false,
  118. 3 => false
  119. ),
  120. 'STYLES' => array(
  121. 'KEYWORDS' => array(
  122. 1 => 'color: #000099; font-weight: bold;',
  123. 2 => 'color: #0066FF;',
  124. 3 => 'color: #993300;'
  125. ),
  126. 'COMMENTS' => array(
  127. 0 => 'color: #666666; font-style: italic;',
  128. 1 => 'color: #666666; font-style: italic;',
  129. 2 => 'color: #9999FF; font-style: italic;'
  130. ),
  131. 'ESCAPE_CHAR' => array(
  132. 0 => 'color: #006666;',
  133. 1 => 'color: #0099FF;',
  134. 2 => 'color: red;',
  135. 3 => 'color: #007800;',
  136. 4 => 'color: #007800;',
  137. 5 => 'color: #780078;'
  138. ),
  139. 'BRACKETS' => array(
  140. 0 => 'color: #7a0874; font-weight: bold;'
  141. ),
  142. 'STRINGS' => array(
  143. 0 => 'color: #009900;'
  144. ),
  145. 'NUMBERS' => array(
  146. 0 => 'color: #000000;'
  147. ),
  148. 'METHODS' => array(
  149. ),
  150. 'SYMBOLS' => array(
  151. 0 => 'color: #000000; font-weight: bold;'
  152. ),
  153. 'REGEXPS' => array(
  154. 0 => 'color: #0099FF;', // variables
  155. 1 => 'color: #0000FF;', // qualifiers
  156. 2 => 'color: #FF6600; font-weight: bold;' // labels
  157. ),
  158. 'SCRIPT' => array(
  159. )
  160. ),
  161. 'URLS' => array(
  162. 1 => '',
  163. 2 => '',
  164. 3 => ''
  165. ),
  166. 'OOLANG' => false,
  167. 'OBJECT_SPLITTERS' => array(
  168. ),
  169. 'REGEXPS' => array(
  170. // variables
  171. 0 => "'[a-zA-Z_\\-$]+'",
  172. // qualifiers and parameters
  173. 1 => "(?:\/[a-zA-Z_\/]+)[\s=]",
  174. // labels
  175. 2 => '(?<=\$)\s*[a-zA-Z\-_]+:'
  176. ),
  177. 'STRICT_MODE_APPLIES' => GESHI_NEVER,
  178. 'SCRIPT_DELIMITERS' => array(
  179. ),
  180. 'HIGHLIGHT_STRICT_BLOCK' => array(
  181. ),
  182. 'TAB_WIDTH' => 4,
  183. 'PARSER_CONTROL' => array(
  184. 'COMMENTS' => array(
  185. ),
  186. 'KEYWORDS' => array(
  187. )
  188. )
  189. );
  190. ?>