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.

e.php 7.9KB

11 years ago
11 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. <?php
  2. /*************************************************************************************
  3. * e.php
  4. * --------
  5. * Author: Kevin Reid (kpreid@switchb.org)
  6. * Copyright: (c) 2010 Kevin Reid (http://switchb.org/kpreid/)
  7. * Release Version: 1.0.8.11
  8. * Date Started: 2010/04/16
  9. *
  10. * E language file for GeSHi.
  11. *
  12. * CHANGES
  13. * -------
  14. * 2010-04-21 (1.0.8.8)
  15. * - Fixing langcheck-reported bugs.
  16. * 2010-04-14 (0.1)
  17. * - First Release
  18. *
  19. * TODO (updated 2010-04-21)
  20. * -------------------------
  21. * - Do something useful with the keyword groups. Since RC uses CSS classes named
  22. * by the group numbers, either
  23. * - change the numbering to match conventional uses by other languages,
  24. * - or find or create some way to produce usefully named classes.
  25. *
  26. *************************************************************************************
  27. *
  28. * This file is part of GeSHi.
  29. *
  30. * GeSHi is free software; you can redistribute it and/or modify
  31. * it under the terms of the GNU General Public License as published by
  32. * the Free Software Foundation; either version 2 of the License, or
  33. * (at your option) any later version.
  34. *
  35. * GeSHi is distributed in the hope that it will be useful,
  36. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  37. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  38. * GNU General Public License for more details.
  39. *
  40. * You should have received a copy of the GNU General Public License
  41. * along with GeSHi; if not, write to the Free Software
  42. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  43. *
  44. ************************************************************************************/
  45. $language_data = array(
  46. 'LANG_NAME' => 'E',
  47. 'COMMENT_SINGLE' => array(1 => '#'),
  48. 'COMMENT_MULTI' => array('/**' => '*/'), // Note: This is method doc, not a general comment syntax.
  49. 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
  50. // FIXME: The escaping inside ` is actually doubling of any interior `, $, or @ -- backslash is NOT special
  51. 'QUOTEMARKS' => array('\'', '"', '`'),
  52. 'ESCAPE_CHAR' => '\\',
  53. 'KEYWORDS' => array(
  54. // builtin control structures
  55. 1 => array(
  56. 'accum', 'break', 'try', 'continue', 'if', 'while', 'for', 'switch'
  57. ),
  58. // control structures subsidiary keywords
  59. 2 => array(
  60. 'catch', 'else', 'finally', 'in', 'exit'
  61. ),
  62. // named operators
  63. 3 => array(
  64. 'fn', 'via'
  65. ),
  66. // variable/function/object definers
  67. 4 => array(
  68. 'def', 'bind', 'var'
  69. ),
  70. // object definition subsidiary keywords
  71. 5 => array(
  72. 'extends', 'as', 'implements', 'guards', 'match', 'to', 'method'
  73. ),
  74. // builtin nouns in safeEnv
  75. 6 => array(
  76. 'null', 'false', 'true', 'throw', '__loop', '__makeList',
  77. '__makeMap', '__makeProtocolDesc', '__makeMessageDesc',
  78. '__makeParamDesc', 'any', 'void', 'boolean', '__makeOrderedSpace',
  79. 'ValueGuard', '__MatchContext', 'require', '__makeVerbFacet', 'NaN',
  80. 'Infinity', '__identityFunc', '__makeInt', '__makeFinalSlot',
  81. '__makeVarSlot', '__makeGuardedSlot', '__makeGuard', '__makeTwine',
  82. '__makeSourceSpan', '__auditedBy', 'Guard', 'near', 'pbc',
  83. 'PassByCopy', 'DeepPassByCopy', 'Data', 'Persistent', 'DeepFrozen',
  84. 'int', 'float64', 'char', 'String', 'Twine', 'TextWriter', 'List',
  85. 'Map', 'nullOk', 'Tuple', '__Portrayal', 'notNull', 'vow', 'rcvr',
  86. 'SturdyRef', 'simple__quasiParser', 'twine__quasiParser',
  87. 'rx__quasiParser', 'e__quasiParser', 'epatt__quasiParser',
  88. 'sml__quasiParser', 'term__quasiParser', 'traceln', '__equalizer',
  89. '__comparer', 'Ref', 'E', 'promiseAllFulfilled', 'EIO', 'help',
  90. 'safeScope', '__eval', 'resource__uriGetter', 'type__uriGetter',
  91. 'import__uriGetter', 'elib__uriGetter', 'elang__uriGetter',
  92. 'opaque__uriGetter'
  93. ),
  94. // builtin nouns in privilegedEnv
  95. 7 => array(
  96. 'file__uriGetter', 'fileURL__uriGetter', 'jar__uriGetter',
  97. 'http__uriGetter', 'ftp__uriGetter', 'gopher__uriGetter',
  98. 'news__uriGetter', 'cap__uriGetter', 'makeCommand', 'stdout',
  99. 'stderr', 'stdin', 'print', 'println', 'interp', 'entropy', 'timer',
  100. 'introducer', 'identityMgr', 'makeSturdyRef', 'timeMachine',
  101. 'unsafe__uriGetter', 'currentVat', 'rune', 'awt__uriGetter',
  102. 'swing__uriGetter', 'JPanel__quasiParser', 'swt__uriGetter',
  103. 'currentDisplay', 'swtGrid__quasiParser', 'swtGrid`',
  104. 'privilegedScope'
  105. ),
  106. // reserved keywords
  107. 8 => array(
  108. 'abstract', 'an', 'assert', 'attribute', 'be', 'begin', 'behalf',
  109. 'belief', 'believe', 'believes', 'case', 'class', 'const',
  110. 'constructor', 'declare', 'default', 'define', 'defmacro',
  111. 'delicate', 'deprecated', 'dispatch', 'do', 'encapsulate',
  112. 'encapsulated', 'encapsulates', 'end', 'ensure', 'enum', 'eventual',
  113. 'eventually', 'export', 'facet', 'forall', 'function', 'given',
  114. 'hidden', 'hides', 'inline', 'is', 'know', 'knows', 'lambda', 'let',
  115. 'methods', 'module', 'namespace', 'native', 'obeys', 'octet',
  116. 'oneway', 'operator', 'package', 'private', 'protected', 'public',
  117. 'raises', 'reliance', 'reliant', 'relies', 'rely', 'reveal', 'sake',
  118. 'signed', 'static', 'struct', 'suchthat', 'supports', 'suspect',
  119. 'suspects', 'synchronized', 'this', 'transient', 'truncatable',
  120. 'typedef', 'unsigned', 'unum', 'uses', 'using', 'utf8', 'utf16',
  121. 'virtual', 'volatile', 'wstring'
  122. )
  123. ),
  124. 'SYMBOLS' => array(
  125. 1 => array(
  126. '(', ')', '{', '}', '[', ']', '+', '-', '*', '/', '%', '=', '<', '>', '!', '^', '&', '|', '?', ':', ';', ','
  127. )
  128. ),
  129. 'CASE_SENSITIVE' => array(
  130. GESHI_COMMENTS => false,
  131. 1 => true,
  132. 2 => true,
  133. 3 => true,
  134. 4 => true,
  135. 5 => true,
  136. 6 => true,
  137. 7 => true,
  138. 8 => true
  139. ),
  140. 'STYLES' => array(
  141. 'KEYWORDS' => array(
  142. 1 => 'color: #b1b100;',
  143. 2 => 'color: #b1b100;',
  144. 3 => 'color: #b1b100;',
  145. 4 => 'color: #b1b100;',
  146. 5 => 'color: #b1b100;',
  147. 6 => 'color: #b1b100;',
  148. 7 => 'color: #b1b100;',
  149. 8 => 'color: #b1b100;'
  150. ),
  151. 'COMMENTS' => array(
  152. 1 => 'color: #666666; font-style: italic;',
  153. 'MULTI' => 'color: #666666; font-style: italic;'
  154. ),
  155. 'ESCAPE_CHAR' => array(
  156. 0 => 'color: #000099; font-weight: bold;'
  157. ),
  158. 'BRACKETS' => array(
  159. 0 => 'color: #009900;'
  160. ),
  161. 'STRINGS' => array(
  162. 0 => 'color: #0000ff;'
  163. ),
  164. 'NUMBERS' => array(
  165. 0 => 'color: #cc66cc;',
  166. ),
  167. 'METHODS' => array(
  168. 0 => 'color: #004000;'
  169. ),
  170. 'SYMBOLS' => array(
  171. 1 => 'color: #339933;'
  172. ),
  173. 'REGEXPS' => array(),
  174. 'SCRIPT' => array()
  175. ),
  176. 'URLS' => array(
  177. 1 => 'http://wiki.erights.org/wiki/{FNAME}',
  178. 2 => 'http://wiki.erights.org/wiki/{FNAME}',
  179. 3 => 'http://wiki.erights.org/wiki/{FNAME}',
  180. 4 => 'http://wiki.erights.org/wiki/{FNAME}',
  181. 5 => 'http://wiki.erights.org/wiki/{FNAME}',
  182. 6 => 'http://wiki.erights.org/wiki/{FNAME}',
  183. 7 => 'http://wiki.erights.org/wiki/{FNAME}',
  184. 8 => 'http://wiki.erights.org/wiki/{FNAME}'
  185. ),
  186. 'OOLANG' => true,
  187. 'OBJECT_SPLITTERS' => array(
  188. 1 => '.',
  189. 2 => '<-',
  190. 3 => '::'
  191. ),
  192. 'REGEXPS' => array(),
  193. 'STRICT_MODE_APPLIES' => GESHI_NEVER,
  194. 'SCRIPT_DELIMITERS' => array(),
  195. 'HIGHLIGHT_STRICT_BLOCK' => array()
  196. );
  197. ?>