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.

164 lines
5.6KB

  1. <?php
  2. /*************************************************************************************
  3. * netrexx.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. * NetRexx 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' => 'NetRexx',
  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. 'class', 'do', 'exit', 'if', 'import', 'iterate', 'leave',
  52. 'loop', 'nop', 'numeric', 'package', 'parse', 'properties',
  53. 'return', 'say', 'select', 'signal', 'trace'
  54. ),
  55. 2 => array(
  56. 'abstract', 'adapter', 'all', 'ask', 'binary', 'case',
  57. 'constant', 'dependent', 'deprecated', 'extends', 'final',
  58. 'implements', 'inheritable', 'interface', 'label', 'methods',
  59. 'native', 'off', 'private', 'protect', 'public', 'results',
  60. 'returns', 'shared', 'signals', 'source', 'static',
  61. 'transient', 'unused', 'uses', 'version', 'volatile'
  62. ),
  63. 3 => array(
  64. 'catch', 'else', 'end', 'finally', 'otherwise', 'then', 'when'
  65. ),
  66. 4 => array(
  67. 'rc', 'result', 'self', 'sigl', 'super'
  68. ),
  69. 5 => array(
  70. 'placeholderforoorexxdirectives'
  71. ),
  72. 6 => array(
  73. 'abbrev', 'abs', 'b2x', 'c2d', 'c2x', 'center', 'centre',
  74. 'changestr', 'compare', 'copies', 'copyindexed', 'countstr',
  75. 'd2c', 'd2x', 'datatype', 'delstr', 'delword', 'exists',
  76. 'formword', 'hashcode', 'insert', 'lastpos', 'left', 'lower',
  77. 'max', 'min', 'noteq', 'noteqs', 'opadd', 'opand', 'opcc',
  78. 'opccblank', 'opdiv', 'opdivi', 'opeq', 'opeqs', 'opgt',
  79. 'opgteq', 'opgteqs', 'opgts', 'oplt', 'oplteq', 'oplteqs',
  80. 'oplts', 'opminus', 'opmult', 'opnot', 'opor', 'opplus',
  81. 'oppow', 'oprem', 'opsub', 'opxor', 'overlay', 'pos position',
  82. 'reverse', 'right', 'sequence', 'setdigits', 'setform',
  83. 'sign', 'space', 'strip', 'substr', 'subword', 'toboolean',
  84. 'tobyte', 'tochar', 'todouble', 'tofloat', 'toint', 'tolong',
  85. 'toshort', 'tostring', 'translate', 'trunc', 'upper',
  86. 'verify', 'word', 'wordindex', 'wordlength', 'wordpos',
  87. 'words', 'x2b', 'x2c', 'x2d'
  88. )
  89. ),
  90. 'SYMBOLS' => array(
  91. '(', ')', '<', '>', '[', ']', '=', '+', '-', '*', '/', '!', '%', '^', '&', ':',
  92. '<', '>'
  93. ),
  94. 'CASE_SENSITIVE' => array(
  95. GESHI_COMMENTS => true,
  96. 1 => false,
  97. 2 => false,
  98. 3 => false,
  99. 4 => false,
  100. 5 => false,
  101. 6 => false
  102. ),
  103. 'STYLES' => array(
  104. 'KEYWORDS' => array(
  105. 1 => 'color: #b1b100;',
  106. 2 => 'color: #ff0000; font-weight: bold;',
  107. 3 => 'color: #00ff00; font-weight: bold;',
  108. 4 => 'color: #0000ff; font-weight: bold;',
  109. 5 => 'color: #880088; font-weight: bold;',
  110. 6 => 'color: #888800; font-weight: bold;'
  111. ),
  112. 'COMMENTS' => array(
  113. 1 => 'color: #666666;',
  114. 'MULTI' => 'color: #808080;'
  115. ),
  116. 'ESCAPE_CHAR' => array(
  117. 0 => 'color: #000099; font-weight: bold;'
  118. ),
  119. 'BRACKETS' => array(
  120. 0 => 'color: #66cc66;'
  121. ),
  122. 'STRINGS' => array(
  123. 0 => 'color: #ff0000;'
  124. ),
  125. 'NUMBERS' => array(
  126. 0 => 'color: #cc66cc;'
  127. ),
  128. 'METHODS' => array(
  129. 1 => 'color: #202020;',
  130. 2 => 'color: #202020;'
  131. ),
  132. 'SYMBOLS' => array(
  133. 0 => 'color: #66cc66;'
  134. ),
  135. 'REGEXPS' => array(
  136. ),
  137. 'SCRIPT' => array(
  138. )
  139. ),
  140. 'URLS' => array(
  141. 1 => '',
  142. 2 => '',
  143. 3 => '',
  144. 4 => '',
  145. 5 => '',
  146. 6 => ''
  147. ),
  148. 'OOLANG' => true,
  149. 'OBJECT_SPLITTERS' => array(
  150. 1 => '.'
  151. ),
  152. 'REGEXPS' => array(
  153. ),
  154. 'STRICT_MODE_APPLIES' => GESHI_NEVER,
  155. 'SCRIPT_DELIMITERS' => array(
  156. ),
  157. 'HIGHLIGHT_STRICT_BLOCK' => array(
  158. ),
  159. 'TAB_WIDTH' => 4
  160. );
  161. ?>