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.

172 lines
5.9KB

  1. <?php
  2. /*************************************************************************************
  3. * oorexx.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. * ooRexx 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' => 'ooRexx',
  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', 'if',
  53. 'interpret', 'iterate', 'leave', 'loop', 'nop', 'numeric',
  54. 'parse', 'procedure', 'pull', 'push', 'queue',
  55. 'raise', 'reply', 'return', 'say', 'select', 'signal',
  56. 'use'
  57. ),
  58. 2 => array(
  59. 'abstract', 'any', 'arguments', 'array', 'by',
  60. 'continue', 'digits', 'engineering', 'error',
  61. 'expose', 'external', 'failure', 'for', 'forever',
  62. 'forward', 'get', 'guard', 'guarded', 'halt',
  63. 'inherit', 'library', 'lostdigits', 'message',
  64. 'metaclass', 'mixinclass', 'name', 'nomethod', 'nostring',
  65. 'notready', 'novalue', 'off', 'on', 'options', 'over',
  66. 'private', 'protected', 'public', 'scientific', 'set',
  67. 'source', 'subclass', 'syntax', 'to', 'unguarded',
  68. 'unprotected', 'until', 'user',
  69. 'version', 'while', 'with'
  70. ),
  71. 3 => array(
  72. 'else', 'end', 'otherwise', 'then', 'when'
  73. ),
  74. 4 => array(
  75. 'rc', 'result', 'self', 'sigl', 'super'
  76. ),
  77. 5 => array(
  78. '::attribute', '::class', '::constant', '::method',
  79. '::optins', '::requires', '::routine'
  80. ),
  81. 6 => array(
  82. 'abbrev', 'abs', 'beep', 'bitand', 'bitor',
  83. 'bitxor', 'b2x', 'center', 'centre', 'changestr', 'charin',
  84. 'charout', 'chars', 'compare', 'condition', 'copies',
  85. 'countstr', 'c2d', 'c2x', 'datatype', 'date', 'delstr',
  86. 'delword', 'directory', 'd2c', 'd2x', 'endlocal',
  87. 'errortext', 'filespec', 'form', 'format', 'fuzz', 'insert',
  88. 'lastpos', 'left', 'length', 'linein', 'lineout', 'lines',
  89. 'lower', 'max', 'min', 'overlay', 'pos', 'qualify', 'queued',
  90. 'random', 'reverse', 'right', 'rxfuncadd', 'rxfuncdrop',
  91. 'rxfuncquery', 'rxqueue', 'setlocal', 'sign', 'sourceline',
  92. 'space', 'stream', 'strip', 'substr', 'subword', 'symbol',
  93. 'time', 'trace', 'translate', 'trunc', 'upper', 'userid',
  94. 'value', 'var', 'verify', 'word', 'wordindex', 'wordlength',
  95. 'wordpos', 'words', 'xrange', 'x2b', 'x2c', 'x2d'
  96. )
  97. ),
  98. 'SYMBOLS' => array(
  99. '(', ')', '<', '>', '[', ']', '=', '+', '-', '*', '/', '!', '%', '^', '&', ':',
  100. '<', '>'
  101. ),
  102. 'CASE_SENSITIVE' => array(
  103. GESHI_COMMENTS => true,
  104. 1 => false,
  105. 2 => false,
  106. 3 => false,
  107. 4 => false,
  108. 5 => false,
  109. 6 => false
  110. ),
  111. 'STYLES' => array(
  112. 'KEYWORDS' => array(
  113. 1 => 'color: #b1b100;',
  114. 2 => 'color: #ff0000; font-weight: bold;',
  115. 3 => 'color: #00ff00; font-weight: bold;',
  116. 4 => 'color: #0000ff; font-weight: bold;',
  117. 5 => 'color: #880088; font-weight: bold;',
  118. 6 => 'color: #888800; font-weight: bold;'
  119. ),
  120. 'COMMENTS' => array(
  121. 1 => 'color: #666666;',
  122. 'MULTI' => 'color: #808080;'
  123. ),
  124. 'ESCAPE_CHAR' => array(
  125. 0 => 'color: #000099; font-weight: bold;'
  126. ),
  127. 'BRACKETS' => array(
  128. 0 => 'color: #66cc66;'
  129. ),
  130. 'STRINGS' => array(
  131. 0 => 'color: #ff0000;'
  132. ),
  133. 'NUMBERS' => array(
  134. 0 => 'color: #cc66cc;'
  135. ),
  136. 'METHODS' => array(
  137. 1 => 'color: #202020;',
  138. 2 => 'color: #202020;'
  139. ),
  140. 'SYMBOLS' => array(
  141. 0 => 'color: #66cc66;'
  142. ),
  143. 'REGEXPS' => array(
  144. ),
  145. 'SCRIPT' => array(
  146. )
  147. ),
  148. 'URLS' => array(
  149. 1 => '',
  150. 2 => '',
  151. 3 => '',
  152. 4 => '',
  153. 5 => '',
  154. 6 => ''
  155. ),
  156. 'OOLANG' => true,
  157. 'OBJECT_SPLITTERS' => array(
  158. 1 => '.'
  159. ),
  160. 'REGEXPS' => array(
  161. ),
  162. 'STRICT_MODE_APPLIES' => GESHI_NEVER,
  163. 'SCRIPT_DELIMITERS' => array(
  164. ),
  165. 'HIGHLIGHT_STRICT_BLOCK' => array(
  166. ),
  167. 'TAB_WIDTH' => 4
  168. );
  169. ?>