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.

rexx.php 5.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. <?php
  2. /*************************************************************************************
  3. * rexx.php
  4. * ---------------------------------
  5. * Author: Jon Wolfers (sahananda@windhorse.biz)
  6. * Contributors:
  7. * - Walter Pachl (pachl@chello.at)
  8. * Copyright: (c) 2008 Jon Wolfers, (c) 2012 Walter Pachl
  9. * Release Version: 1.0.8.11
  10. * Date Started: 2008/01/07
  11. *
  12. * Rexx language file for GeSHi.
  13. *
  14. * CHANGES
  15. * -------
  16. * 2012/07/29 (1.0.0)
  17. * - tried to get it syntactically right
  18. *
  19. * TODO (updated 2012/07/29)
  20. * -------------------------
  21. * - Get it working on rosettacode.org
  22. *
  23. *************************************************************************************
  24. *
  25. * This file is part of GeSHi.
  26. *
  27. * GeSHi is free software; you can redistribute it and/or modify
  28. * it under the terms of the GNU General Public License as published by
  29. * the Free Software Foundation; either version 2 of the License, or
  30. * (at your option) any later version.
  31. *
  32. * GeSHi is distributed in the hope that it will be useful,
  33. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  34. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  35. * GNU General Public License for more details.
  36. *
  37. * You should have received a copy of the GNU General Public License
  38. * along with GeSHi; if not, write to the Free Software
  39. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  40. *
  41. ************************************************************************************/
  42. $language_data = array (
  43. 'LANG_NAME' => 'rexx',
  44. 'COMMENT_SINGLE' => array(1 => '--'),
  45. 'COMMENT_MULTI' => array('/*' => '*/'),
  46. 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
  47. 'QUOTEMARKS' => array("'", '"'),
  48. 'ESCAPE_CHAR' => '',
  49. 'KEYWORDS' => array(
  50. 1 => array(
  51. 'address', 'arg', 'attribute', 'call', 'constant', 'do',
  52. 'drop', 'exit', 'forward', 'if',
  53. 'interpret', 'iterate', 'leave', 'loop', 'nop', 'numeric',
  54. 'options', 'parse', 'procedure', 'pull', 'push', 'queue',
  55. 'raise', 'return', 'say', 'select', 'signal', 'trace'
  56. ),
  57. 2 => array(
  58. 'by', 'digits', 'engineering', 'error', 'expose',
  59. 'failure', 'for', 'forever', 'form', 'fuzz', 'halt',
  60. 'name', 'novalue', 'off', 'on', 'over', 'scientific', 'source',
  61. 'syntax', 'to', 'until', 'upper', 'version',
  62. 'while', 'with'
  63. ),
  64. 3 => array(
  65. 'else', 'end', 'otherwise', 'then', 'when'
  66. ),
  67. 4 => array(
  68. 'rc', 'result', 'sigl'
  69. ),
  70. 5 => array(
  71. 'placeholderforoorexxdirectives'
  72. ),
  73. 6 => array(
  74. 'abbrev', 'abs', 'beep', 'bitand', 'bitor',
  75. 'bitxor', 'b2x', 'center', 'centre', 'changestr', 'charin',
  76. 'charout', 'chars', 'compare', 'condition', 'copies',
  77. 'countstr', 'c2d', 'c2x', 'datatype', 'date', 'delstr',
  78. 'delword', 'directory', 'd2c', 'd2x', 'endlocal',
  79. 'errortext', 'filespec', 'format', 'insert',
  80. 'lastpos', 'left', 'length', 'linein', 'lineout', 'lines',
  81. 'lower', 'max', 'min', 'overlay', 'pos', 'queued', 'random',
  82. 'reverse', 'right', 'rxfuncadd', 'rxfuncdrop', 'rxfuncquery',
  83. 'rxqueue', 'setlocal', 'sign', 'sourceline', 'space',
  84. 'stream', 'strip', 'substr', 'subword', 'symbol', 'time',
  85. 'translate', 'trunc', 'userid', 'value',
  86. 'var', 'verify', 'word', 'wordindex', 'wordlength', 'wordpos',
  87. 'words', 'xrange', 'x2b', 'x2c', 'x2d'
  88. )
  89. ),
  90. 'SYMBOLS' => array(
  91. '(', ')', '<', '>', '=', '+', '-', '*', '**', '/', '|', '%', '^', '&', ':'
  92. ),
  93. 'CASE_SENSITIVE' => array(
  94. GESHI_COMMENTS => true,
  95. 1 => false,
  96. 2 => false,
  97. 3 => false,
  98. 4 => false,
  99. 5 => false,
  100. 6 => false
  101. ),
  102. 'STYLES' => array(
  103. 'KEYWORDS' => array(
  104. 1 => 'color: #b1b100;',
  105. 2 => 'color: #ff0000; font-weight: bold;',
  106. 3 => 'color: #00ff00; font-weight: bold;',
  107. 4 => 'color: #0000ff; font-weight: bold;',
  108. 5 => 'color: #880088; font-weight: bold;',
  109. 6 => 'color: #888800; font-weight: bold;'
  110. ),
  111. 'COMMENTS' => array(
  112. 1 => 'color: #666666;',
  113. 'MULTI' => 'color: #808080;'
  114. ),
  115. 'ESCAPE_CHAR' => array(
  116. 0 => 'color: #000099; font-weight: bold;'
  117. ),
  118. 'BRACKETS' => array(
  119. 0 => 'color: #66cc66;'
  120. ),
  121. 'STRINGS' => array(
  122. 0 => 'color: #ff0000;'
  123. ),
  124. 'NUMBERS' => array(
  125. 0 => 'color: #cc66cc;'
  126. ),
  127. 'METHODS' => array(
  128. 1 => 'color: #202020;',
  129. 2 => 'color: #202020;'
  130. ),
  131. 'SYMBOLS' => array(
  132. 0 => 'color: #66cc66;'
  133. ),
  134. 'REGEXPS' => array(
  135. ),
  136. 'SCRIPT' => array(
  137. )
  138. ),
  139. 'URLS' => array(
  140. 1 => '',
  141. 2 => '',
  142. 3 => '',
  143. 4 => '',
  144. 5 => '',
  145. 6 => ''
  146. ),
  147. 'OOLANG' => false,
  148. 'OBJECT_SPLITTERS' => array(
  149. 1 => '.'
  150. ),
  151. 'REGEXPS' => array(
  152. ),
  153. 'STRICT_MODE_APPLIES' => GESHI_NEVER,
  154. 'SCRIPT_DELIMITERS' => array(
  155. ),
  156. 'HIGHLIGHT_STRICT_BLOCK' => array(
  157. ),
  158. 'TAB_WIDTH' => 4
  159. );
  160. ?>