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.

oxygene.php 5.7KB

11 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. <?php
  2. /*************************************************************************************
  3. * oxygene.php
  4. * ----------
  5. * Author: Carlo Kok (ck@remobjects.com), J�rja Norbert (jnorbi@vipmail.hu), Benny Baumann (BenBE@omorphia.de)
  6. * Copyright: (c) 2004 J�rja Norbert, Benny Baumann (BenBE@omorphia.de), Nigel McNie (http://qbnz.com/highlighter)
  7. * Release Version: 1.0.8.10
  8. * Date Started: 2010/01/11
  9. *
  10. * Delphi Prism (Oxygene) language file for GeSHi.
  11. * Based on the original Delphi language file.
  12. *
  13. * CHANGES
  14. * -------
  15. * 2010/01/11 (1.0.0)
  16. * - First Release
  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' => 'Oxygene (Delphi Prism)',
  39. 'COMMENT_SINGLE' => array(1 => '//'),
  40. 'COMMENT_MULTI' => array('(*' => '*)', '{' => '}'),
  41. //Compiler directives
  42. 'COMMENT_REGEXP' => array(2 => '/{\\$.*?}|\\(\\*\\$.*?\\*\\)/U'),
  43. 'CASE_KEYWORDS' => 0,
  44. 'QUOTEMARKS' => array("'"),
  45. 'ESCAPE_CHAR' => '',
  46. 'KEYWORDS' => array(
  47. 1 => array(
  48. 'and', 'begin', 'case', 'const', 'div', 'do', 'downto', 'else',
  49. 'end', 'for', 'function', 'if', 'in', 'mod', 'not', 'of', 'or',
  50. 'procedure', 'repeat', 'record', 'set', 'shl', 'shr', 'then', 'to',
  51. 'type', 'until', 'uses', 'var','while', 'with', 'xor', 'exit', 'break',
  52. 'class', 'constructor', 'inherited', 'private', 'public', 'protected',
  53. 'property', 'As', 'Is', 'Unit', 'Continue', 'Try', 'Except', 'Forward',
  54. 'Interface','Implementation', 'nil', 'out', 'loop', 'namespace', 'true',
  55. 'false', 'new', 'ensure', 'require', 'on', 'event', 'delegate', 'method',
  56. 'raise', 'assembly', 'module', 'using','locking', 'old', 'invariants', 'operator',
  57. 'self', 'async', 'finalizer', 'where', 'yield', 'nullable', 'Future',
  58. 'From', 'Finally', 'dynamic'
  59. ),
  60. 2 => array(
  61. 'override', 'virtual', 'External', 'read', 'add', 'remove','final', 'abstract',
  62. 'empty', 'global', 'locked', 'sealed', 'reintroduce', 'implements', 'each',
  63. 'default', 'partial', 'finalize', 'enum', 'flags', 'result', 'readonly', 'unsafe',
  64. 'pinned', 'matching', 'static', 'has', 'step', 'iterator', 'inline', 'nested',
  65. 'Implies', 'Select', 'Order', 'By', 'Desc', 'Asc', 'Group', 'Join', 'Take',
  66. 'Skip', 'Concat', 'Union', 'Reverse', 'Distinct', 'Into', 'Equals', 'params',
  67. 'sequence', 'index', 'notify', 'Parallel', 'create', 'array', 'Queryable', 'Aspect',
  68. 'volatile'
  69. ),
  70. 3 => array(
  71. 'chr', 'ord', 'inc', 'dec', 'assert', 'iff', 'assigned','futureAssigned', 'length', 'low', 'high', 'typeOf', 'sizeOf', 'disposeAndNil', 'Coalesce', 'unquote'
  72. ),
  73. ),
  74. 'CASE_SENSITIVE' => array(
  75. GESHI_COMMENTS => false,
  76. 1 => false,
  77. 2 => false,
  78. 3 => false,
  79. // 4 => false,
  80. ),
  81. 'SYMBOLS' => array(
  82. 0 => array('(', ')', '[', ']'),
  83. 1 => array('.', ',', ':', ';'),
  84. 2 => array('@', '^'),
  85. 3 => array('=', '+', '-', '*', '/')
  86. ),
  87. 'STYLES' => array(
  88. 'KEYWORDS' => array(
  89. 1 => 'color: #000000; font-weight: bold;',
  90. 2 => 'color: #000000; font-weight: bold;',
  91. 3 => 'color: #000066;',
  92. // 4 => 'color: #000066; font-weight: bold;'
  93. ),
  94. 'COMMENTS' => array(
  95. 1 => 'color: #808080; font-style: italic;',
  96. 2 => 'color: #008000; font-style: italic;',
  97. 'MULTI' => 'color: #808080; font-style: italic;'
  98. ),
  99. 'ESCAPE_CHAR' => array(
  100. 0 => 'color: #ff0000; font-weight: bold;'
  101. ),
  102. 'BRACKETS' => array(
  103. 0 => 'color: #000066;'
  104. ),
  105. 'STRINGS' => array(
  106. 0 => 'color: #ff0000;'
  107. ),
  108. 'NUMBERS' => array(
  109. 0 => 'color: #0000ff;'
  110. ),
  111. 'METHODS' => array(
  112. 1 => 'color: #000000;'
  113. ),
  114. 'REGEXPS' => array(
  115. 0 => 'color: #9ac;',
  116. 1 => 'color: #ff0000;'
  117. ),
  118. 'SYMBOLS' => array(
  119. 0 => 'color: #000066;',
  120. 1 => 'color: #000066;',
  121. 2 => 'color: #000066;',
  122. 3 => 'color: #000066;'
  123. ),
  124. 'SCRIPT' => array(
  125. )
  126. ),
  127. 'URLS' => array(
  128. 1 => '',
  129. 2 => '',
  130. 3 => '',
  131. // 4 => ''
  132. ),
  133. 'OOLANG' => true,
  134. 'OBJECT_SPLITTERS' => array(
  135. 1 => '.'
  136. ),
  137. 'REGEXPS' => array(
  138. //Hex numbers
  139. 0 => '\$[0-9a-fA-F]+',
  140. //Characters
  141. 1 => '\#\$?[0-9]{1,3}'
  142. ),
  143. 'STRICT_MODE_APPLIES' => GESHI_NEVER,
  144. 'SCRIPT_DELIMITERS' => array(
  145. ),
  146. 'HIGHLIGHT_STRICT_BLOCK' => array(
  147. ),
  148. 'TAB_WIDTH' => 2
  149. );
  150. ?>