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.

196 lines
8.3KB

  1. <?php
  2. /*************************************************************************************
  3. * rebol.php
  4. * --------
  5. * Author: Lecanu Guillaume (Guillaume@LyA.fr)
  6. * Copyright: (c) 2004-2005 Lecanu Guillaume (Guillaume@LyA.fr)
  7. * Release Version: 1.0.8.10
  8. * Date Started: 2004/12/22
  9. *
  10. * Rebol language file for GeSHi.
  11. *
  12. * CHANGES
  13. * -------
  14. * 2009/01/26 (1.0.8.3)
  15. * - Adapted language file to comply to GeSHi language file guidelines
  16. * 2004/11/25 (1.0.3)
  17. * - Added support for multiple object splitters
  18. * - Fixed &new problem
  19. * 2004/10/27 (1.0.2)
  20. * - Added URL support
  21. * - Added extra constants
  22. * 2004/08/05 (1.0.1)
  23. * - Added support for symbols
  24. * 2004/07/14 (1.0.0)
  25. * - First Release
  26. *
  27. * TODO (updated 2004/07/14)
  28. * -------------------------
  29. * * Make sure the last few function I may have missed
  30. * (like eval()) are included for highlighting
  31. * * Split to several files - php4, php5 etc
  32. *
  33. *************************************************************************************
  34. *
  35. * This file is part of GeSHi.
  36. *
  37. * GeSHi is free software; you can redistribute it and/or modify
  38. * it under the terms of the GNU General Public License as published by
  39. * the Free Software Foundation; either version 2 of the License, or
  40. * (at your option) any later version.
  41. *
  42. * GeSHi is distributed in the hope that it will be useful,
  43. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  44. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  45. * GNU General Public License for more details.
  46. *
  47. * You should have received a copy of the GNU General Public License
  48. * along with GeSHi; if not, write to the Free Software
  49. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  50. *
  51. ************************************************************************************/
  52. $language_data = array (
  53. 'LANG_NAME' => 'REBOL',
  54. 'COMMENT_SINGLE' => array(1 => ';'),
  55. 'COMMENT_MULTI' => array('rebol [' => ']', 'comment [' => ']'),
  56. 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
  57. 'QUOTEMARKS' => array('"'),
  58. 'ESCAPE_CHAR' => '',
  59. 'KEYWORDS' => array(
  60. 1 => array(
  61. 'binary!','block!','char!','date!','decimal!','email!','file!',
  62. 'hash!','integer!','issue!','list!','logic!','money!','none!',
  63. 'object!','paren!','pair!','path!','string!','tag!','time!',
  64. 'tuple!','url!',
  65. ),
  66. 2 => array(
  67. 'all','any','attempt','break','catch','compose','disarm','dispatch',
  68. 'do','do-events','does','either','else','exit','for','forall',
  69. 'foreach','forever','forskip','func','function','halt','has','if',
  70. 'launch','loop','next','quit','reduce','remove-each','repeat',
  71. 'return','secure','switch','throw','try','until','wait','while',
  72. ),
  73. 3 => array(
  74. 'about','abs','absolute','add','alert','alias','alter','and',
  75. 'any-block?','any-function?','any-string?','any-type?','any-word?',
  76. 'append','arccosine','arcsine','arctangent','array','as-pair',
  77. 'ask','at','back','binary?','bind','bitset?','block?','brightness?',
  78. 'browse','build-tag','caret-to-offset','center-face','change',
  79. 'change-dir','char?','charset','checksum','choose','clean-path',
  80. 'clear','clear-fields','close','comment','complement','component?',
  81. 'compress','confirm','connected?','construct','context','copy',
  82. 'cosine','datatype?','date?','debase','decimal?','decode-cgi',
  83. 'decompress','dehex','delete','detab','difference','dir?','dirize',
  84. 'divide','dump-face','dump-obj','echo','email?','empty?','enbase',
  85. 'entab','equal?','error?','even?','event?','exclude','exists?',
  86. 'exp','extract','fifth','file?','find','first','flash','focus',
  87. 'form','found?','fourth','free','function?','get','get-modes',
  88. 'get-word?','greater-or-equal?','greater?','hash?','head','head?',
  89. 'help','hide','hide-popup','image?','import-email','in',
  90. 'in-window?','index?','info?','inform','input','input?','insert',
  91. 'integer?','intersect','issue?','join','last','layout','length?',
  92. 'lesser-or-equal?','lesser?','library?','license','link?',
  93. 'list-dir','list?','lit-path?','lit-word?','load','load-image',
  94. 'log-10','log-2','log-e','logic?','lowercase','make','make-dir',
  95. 'make-face','max','maximum','maximum-of','min','minimum',
  96. 'minimum-of','modified?','mold','money?','multiply','native?',
  97. 'negate','negative?','none?','not','not-equal?','now','number?',
  98. 'object?','odd?','offset-to-caret','offset?','op?','open','or',
  99. 'pair?','paren?','parse','parse-xml','path?','pick','poke','port?',
  100. 'positive?','power','prin','print','probe','protect',
  101. 'protect-system','query','random','read','read-io','recycle',
  102. 'refinement?','reform','rejoin','remainder','remold','remove',
  103. 'rename',
  104. //'repeat',
  105. 'repend','replace','request','request-color','request-date',
  106. 'request-download','request-file','request-list','request-pass',
  107. 'request-text','resend','reverse','routine?','same?','save',
  108. 'script?','second','select','send','series?','set','set-modes',
  109. 'set-net','set-path?','set-word?','show','show-popup','sign?',
  110. 'sine','size-text','size?','skip','sort','source','span?',
  111. 'split-path','square-root','strict-equal?','strict-not-equal?',
  112. 'string?','struct?','stylize','subtract','suffix?','tag?','tail',
  113. 'tail?','tangent','third','time?','to','to-binary','to-bitset',
  114. 'to-block','to-char','to-date','to-decimal','to-email','to-file',
  115. 'to-get-word','to-hash','to-hex','to-idate','to-image','to-integer',
  116. 'to-issue','to-list','to-lit-path','to-lit-word','to-local-file',
  117. 'to-logic','to-money','to-pair','to-paren','to-path',
  118. 'to-rebol-file','to-refinement','to-set-path','to-set-word',
  119. 'to-string','to-tag','to-time','to-tuple','to-url','to-word',
  120. 'trace','trim','tuple?','type?','unfocus','union','unique',
  121. 'unprotect','unset','unset?','unview','update','upgrade',
  122. 'uppercase','url?','usage','use','value?','view','viewed?','what',
  123. 'what-dir','within?','word?','write','write-io','xor','zero?',
  124. )
  125. ),
  126. 'SYMBOLS' => array(
  127. '(', ')', '[', ']', '{', '}', '!', '@', '%', '&', '*', '|', '/', '<', '>'
  128. ),
  129. 'CASE_SENSITIVE' => array(
  130. GESHI_COMMENTS => false,
  131. 1 => false,
  132. 2 => false,
  133. 3 => false,
  134. ),
  135. 'STYLES' => array(
  136. 'KEYWORDS' => array(
  137. 1 => 'color: #b1b100;',
  138. 2 => 'color: #000000; font-weight: bold;',
  139. 3 => 'color: #000066;'
  140. ),
  141. 'COMMENTS' => array(
  142. 1 => 'color: #808080; font-style: italic;',
  143. // 2 => 'color: #808080; font-style: italic;',
  144. 'MULTI' => 'color: #808080; font-style: italic;'
  145. ),
  146. 'ESCAPE_CHAR' => array(
  147. 0 => 'color: #000099; font-weight: bold;'
  148. ),
  149. 'BRACKETS' => array(
  150. 0 => 'color: #66cc66;'
  151. ),
  152. 'STRINGS' => array(
  153. 0 => 'color: #ff0000;'
  154. ),
  155. 'NUMBERS' => array(
  156. 0 => 'color: #cc66cc;'
  157. ),
  158. 'METHODS' => array(
  159. 1 => 'color: #006600;',
  160. 2 => 'color: #006600;'
  161. ),
  162. 'SYMBOLS' => array(
  163. 0 => 'color: #66cc66;'
  164. ),
  165. 'REGEXPS' => array(
  166. 0 => 'color: #0000ff;'
  167. ),
  168. 'SCRIPT' => array(
  169. 0 => '',
  170. 1 => '',
  171. 2 => '',
  172. 3 => ''
  173. )
  174. ),
  175. 'URLS' => array(
  176. 1 => '',
  177. 2 => '',
  178. 3 => ''
  179. // 2 => 'includes/dico_rebol.php?word={FNAME}',
  180. // 3 => 'includes/dico_rebol.php?word={FNAME}'
  181. ),
  182. 'OOLANG' => false,
  183. 'OBJECT_SPLITTERS' => array(
  184. ),
  185. 'REGEXPS' => array(
  186. 0 => "[\\$]{1,2}[a-zA-Z_][a-zA-Z0-9_]*",
  187. ),
  188. 'STRICT_MODE_APPLIES' => GESHI_NEVER,
  189. 'SCRIPT_DELIMITERS' => array(
  190. ),
  191. 'HIGHLIGHT_STRICT_BLOCK' => array(
  192. )
  193. );
  194. ?>