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.

genie.php 5.2KB

11 years ago
11 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. <?php
  2. /*************************************************************************************
  3. * genie.php
  4. * ----------
  5. * Author: Nicolas Joseph (nicolas.joseph@valaide.org)
  6. * Copyright: (c) 2009 Nicolas Joseph
  7. * Release Version: 1.0.8.11
  8. * Date Started: 2009/04/29
  9. *
  10. * Genie language file for GeSHi.
  11. *
  12. * CHANGES
  13. * -------
  14. *
  15. * TODO
  16. * ----
  17. *
  18. *************************************************************************************
  19. *
  20. * This file is part of GeSHi.
  21. *
  22. * GeSHi is free software; you can redistribute it and/or modify
  23. * it under the terms of the GNU General Public License as published by
  24. * the Free Software Foundation; either version 2 of the License, or
  25. * (at your option) any later version.
  26. *
  27. * GeSHi is distributed in the hope that it will be useful,
  28. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  29. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  30. * GNU General Public License for more details.
  31. *
  32. * You should have received a copy of the GNU General Public License
  33. * along with GeSHi; if not, write to the Free Software
  34. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  35. *
  36. ************************************************************************************/
  37. $language_data = array (
  38. 'LANG_NAME' => 'Genie',
  39. 'COMMENT_SINGLE' => array(1 => '//'),
  40. 'COMMENT_MULTI' => array('/*' => '*/'),
  41. 'COMMENT_REGEXP' => array(
  42. //Using and Namespace directives (basic support)
  43. //Please note that the alias syntax for using is not supported
  44. 3 => '/(?:(?<=using[\\n\\s])|(?<=namespace[\\n\\s]))[\\n\\s]*([a-zA-Z0-9_]+\\.)*[a-zA-Z0-9_]+[\n\s]*(?=[;=])/i'),
  45. 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
  46. 'QUOTEMARKS' => array("'", '"'),
  47. 'HARDQUOTE' => array('@"', '"'),
  48. 'HARDESCAPE' => array('""'),
  49. 'ESCAPE_CHAR' => '\\',
  50. 'KEYWORDS' => array(
  51. 1 => array(
  52. 'and', 'as', 'abstract', 'break', 'case', 'cast', 'catch', 'const',
  53. 'construct', 'continue', 'default', 'def', 'delete', 'div',
  54. 'dynamic', 'do', 'downto', 'else', 'ensures', 'except', 'extern',
  55. 'false', 'final', 'finally', 'for', 'foreach', 'get', 'if', 'in',
  56. 'init', 'inline', 'internal', 'implements', 'lock', 'not', 'null',
  57. 'of', 'or', 'otherwise', 'out', 'override', 'pass', 'raise',
  58. 'raises', 'readonly', 'ref', 'requires', 'self', 'set', 'static',
  59. 'super', 'switch', 'to', 'true', 'try', 'unless', 'uses', 'var', 'virtual',
  60. 'volatile', 'void', 'when', 'while'
  61. ),
  62. // 2 => array(
  63. // ),
  64. 3 => array(
  65. 'is', 'isa', 'new', 'owned', 'sizeof', 'typeof', 'unchecked',
  66. 'unowned', 'weak'
  67. ),
  68. 4 => array(
  69. 'bool', 'byte', 'class', 'char', 'date', 'datetime', 'decimal', 'delegate',
  70. 'double', 'enum', 'event', 'exception', 'float', 'int', 'interface',
  71. 'long', 'object', 'prop', 'sbyte', 'short', 'single', 'string',
  72. 'struct', 'ulong', 'ushort'
  73. ),
  74. // 5 => array(
  75. // ),
  76. ),
  77. 'SYMBOLS' => array(
  78. '+', '-', '*', '?', '=', '/', '%', '&', '>', '<', '^', '!', ':', ';',
  79. '(', ')', '{', '}', '[', ']', '|'
  80. ),
  81. 'CASE_SENSITIVE' => array(
  82. GESHI_COMMENTS => false,
  83. 1 => false,
  84. // 2 => false,
  85. 3 => false,
  86. 4 => false,
  87. // 5 => false,
  88. ),
  89. 'STYLES' => array(
  90. 'KEYWORDS' => array(
  91. 1 => 'color: #0600FF;',
  92. // 2 => 'color: #FF8000; font-weight: bold;',
  93. 3 => 'color: #008000;',
  94. 4 => 'color: #FF0000;',
  95. // 5 => 'color: #000000;'
  96. ),
  97. 'COMMENTS' => array(
  98. 1 => 'color: #008080; font-style: italic;',
  99. // 2 => 'color: #008080;',
  100. 3 => 'color: #008080;',
  101. 'MULTI' => 'color: #008080; font-style: italic;'
  102. ),
  103. 'ESCAPE_CHAR' => array(
  104. 0 => 'color: #008080; font-weight: bold;',
  105. 'HARD' => 'color: #008080; font-weight: bold;'
  106. ),
  107. 'BRACKETS' => array(
  108. 0 => 'color: #000000;'
  109. ),
  110. 'STRINGS' => array(
  111. 0 => 'color: #666666;',
  112. 'HARD' => 'color: #666666;'
  113. ),
  114. 'NUMBERS' => array(
  115. 0 => 'color: #FF0000;'
  116. ),
  117. 'METHODS' => array(
  118. 1 => 'color: #0000FF;',
  119. 2 => 'color: #0000FF;'
  120. ),
  121. 'SYMBOLS' => array(
  122. 0 => 'color: #008000;'
  123. ),
  124. 'REGEXPS' => array(
  125. ),
  126. 'SCRIPT' => array(
  127. )
  128. ),
  129. 'URLS' => array(
  130. 1 => '',
  131. // 2 => '',
  132. 3 => '',
  133. 4 => '',
  134. // 5 => ''
  135. ),
  136. 'OOLANG' => true,
  137. 'OBJECT_SPLITTERS' => array(
  138. 1 => '.'
  139. ),
  140. 'REGEXPS' => array(
  141. ),
  142. 'STRICT_MODE_APPLIES' => GESHI_NEVER,
  143. 'SCRIPT_DELIMITERS' => array(
  144. ),
  145. 'HIGHLIGHT_STRICT_BLOCK' => array(
  146. ),
  147. 'TAB_WIDTH' => 4,
  148. 'PARSER_CONTROL' => array(
  149. 'KEYWORDS' => array(
  150. 'DISALLOWED_BEFORE' => "(?<![a-zA-Z0-9\$_\|\#>|^])",
  151. 'DISALLOWED_AFTER' => "(?![a-zA-Z0-9_<\|%\\-])"
  152. )
  153. )
  154. );
  155. ?>