A tumblelog CMS built on AJAX, PHP and MySQL.

d.php 8.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284
  1. <?php
  2. /*************************************************************************************
  3. * d.php
  4. * -----
  5. * Author: Thomas Kuehne (thomas@kuehne.cn)
  6. * Copyright: (c) 2005 Thomas Kuehne (http://thomas.kuehne.cn/)
  7. * Release Version: 1.0.7.21
  8. * Date Started: 2005/04/22
  9. *
  10. * D language file for GeSHi.
  11. *
  12. * CHANGES
  13. * -------
  14. * 2005/04/22 (0.0.2)
  15. * - added _d_* and sizeof/ptrdiff_t
  16. * 2005/04/20 (0.0.1)
  17. * - First release
  18. *
  19. * TODO (updated 2005/04/22)
  20. * -------------------------
  21. * * nested comments
  22. * * correct handling of r"" and ``
  23. * * correct handling of ... and ..
  24. *
  25. *************************************************************************************
  26. *
  27. * This file is part of GeSHi.
  28. *
  29. * GeSHi is free software; you can redistribute it and/or modify
  30. * it under the terms of the GNU General Public License as published by
  31. * the Free Software Foundation; either version 2 of the License, or
  32. * (at your option) any later version.
  33. *
  34. * GeSHi is distributed in the hope that it will be useful,
  35. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  36. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  37. * GNU General Public License for more details.
  38. *
  39. * You should have received a copy of the GNU General Public License
  40. * along with GeSHi; if not, write to the Free Software
  41. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  42. *
  43. ************************************************************************************/
  44. $language_data = array(
  45. 'LANG_NAME' => 'D',
  46. 'COMMENT_SINGLE' => array(1 => '//'),
  47. 'COMMENT_MULTI' => array('/*' => '*/'),
  48. 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
  49. 'QUOTEMARKS' => array('"', "'", '`'),
  50. 'ESCAPE_CHAR' => '\\',
  51. 'KEYWORDS' => array(
  52. 1 => array(
  53. 'while',
  54. 'switch',
  55. 'if',
  56. 'foreach',
  57. 'for',
  58. 'goto',
  59. 'return',
  60. 'else',
  61. 'do',
  62. 'case',
  63. 'continue',
  64. 'break'
  65. ),
  66. 2 => array(
  67. 'with',
  68. 'union',
  69. 'typeof',
  70. 'typeid',
  71. 'typedef',
  72. 'try',
  73. 'true',
  74. 'throw',
  75. 'this',
  76. 'super',
  77. 'pragma',
  78. 'out',
  79. 'null',
  80. 'new',
  81. 'module',
  82. 'mixin',
  83. 'is',
  84. 'invariant',
  85. 'interface',
  86. 'inout',
  87. 'in',
  88. 'import',
  89. 'function',
  90. 'finally',
  91. 'false',
  92. 'extern',
  93. 'delete',
  94. 'delegate',
  95. 'default',
  96. 'catch',
  97. 'cast',
  98. 'body',
  99. 'assert',
  100. 'asm',
  101. 'alias'
  102. ),
  103. 3 => array(
  104. 'TypeInfo',
  105. 'SwitchError',
  106. 'OutOfMemoryException',
  107. 'Object',
  108. 'ModuleInfo',
  109. 'Interface',
  110. 'Exception',
  111. 'Error',
  112. 'ClassInfo',
  113. 'ArrayBoundsError',
  114. 'AssertError',
  115. '_d_throw',
  116. '_d_switch_ustring',
  117. '_d_switch_string',
  118. '_d_switch_dstring',
  119. '_d_OutOfMemory',
  120. '_d_obj_eq',
  121. '_d_obj_cmp',
  122. '_d_newclass',
  123. '_d_newbitarray',
  124. '_d_newarrayi',
  125. '_d_new',
  126. '_d_monitorrelease',
  127. '_d_monitor_prolog',
  128. '_d_monitor_handler',
  129. '_d_monitorexit',
  130. '_d_monitor_epilog',
  131. '_d_monitorenter',
  132. '_d_local_unwind',
  133. '_d_isbaseof2',
  134. '_d_isbaseof',
  135. '_d_invariant',
  136. '_d_interface_vtbl',
  137. '_d_interface_cast',
  138. '_d_framehandler',
  139. '_d_exception_filter',
  140. '_d_exception',
  141. '_d_dynamic_cast',
  142. '_d_delmemory',
  143. '_d_delinterface',
  144. '_d_delclass',
  145. '_d_delarray',
  146. '_d_criticalexit',
  147. '_d_criticalenter',
  148. '_d_create_exception_object',
  149. '_d_callfinalizer',
  150. '_d_arraysetlengthb',
  151. '_d_arraysetlength',
  152. '_d_arraysetbit2',
  153. '_d_arraysetbit',
  154. '_d_arraycopybit',
  155. '_d_arraycopy',
  156. '_d_arraycatn',
  157. '_d_arraycatb',
  158. '_d_arraycat',
  159. '_d_arraycast_frombit',
  160. '_d_arraycast',
  161. '_d_arrayappendcb',
  162. '_d_arrayappendc',
  163. '_d_arrayappendb',
  164. '_d_arrayappend',
  165. ),
  166. 4 => array(
  167. 'wchar',
  168. 'volatile',
  169. 'void',
  170. 'version',
  171. 'ushort',
  172. 'unittest',
  173. 'ulong',
  174. 'uint',
  175. 'ucent',
  176. 'ubyte',
  177. 'template',
  178. 'struct',
  179. 'static',
  180. 'synchronized',
  181. 'size_t',
  182. 'short',
  183. 'real',
  184. 'public',
  185. 'protected',
  186. 'private',
  187. 'ptrdiff_t',
  188. 'package',
  189. 'override',
  190. 'long',
  191. 'int',
  192. 'ireal',
  193. 'ifloat',
  194. 'idouble',
  195. 'float',
  196. 'final',
  197. 'export',
  198. 'enum',
  199. 'double',
  200. 'deprecated',
  201. 'debug',
  202. 'dchar',
  203. 'creal',
  204. 'const',
  205. 'class',
  206. 'char',
  207. 'cfloat',
  208. 'cent',
  209. 'cdouble',
  210. 'byte',
  211. 'bool',
  212. 'bit',
  213. 'auto',
  214. 'align',
  215. 'abstract'
  216. )
  217. ),
  218. 'SYMBOLS' => array(
  219. '(', ')', '[', ']', '{', '}', '?', '!', ';', ':', ',', '...', '..',
  220. '+', '-', '*', '/', '%', '&', '|', '^', '<', '>', '=', '~',
  221. ),
  222. 'CASE_SENSITIVE' => array(
  223. GESHI_COMMENTS => true,
  224. 1 => true,
  225. 2 => true,
  226. 3 => true,
  227. 4 => true
  228. ),
  229. 'STYLES' => array(
  230. 'KEYWORDS' => array(
  231. 1 => 'color: #b1b100;',
  232. 2 => 'color: #000000; font-weight: bold;',
  233. 3 => 'color: #aaaadd; font-weight: bold;',
  234. 4 => 'color: #993333;'
  235. ),
  236. 'COMMENTS' => array(
  237. 1=> 'color: #808080; font-style: italic;',
  238. 2=> 'color: #a1a100;',
  239. 'MULTI' => 'color: #808080; font-style: italic;'
  240. ),
  241. 'ESCAPE_CHAR' => array(
  242. 0 => 'color: #000099; font-weight: bold;'
  243. ),
  244. 'BRACKETS' => array(
  245. 0 => 'color: #66cc66;'
  246. ),
  247. 'STRINGS' => array(
  248. 0 => 'color: #ff0000;'
  249. ),
  250. 'NUMBERS' => array(
  251. 0 => 'color: #cc66cc;'
  252. ),
  253. 'METHODS' => array(
  254. 1 => 'color: #006600;',
  255. 2 => 'color: #006600;'
  256. ),
  257. 'SYMBOLS' => array(
  258. 0 => 'color: #66cc66;'
  259. ),
  260. 'SCRIPT' => array(
  261. ),
  262. 'REGEXPS' => array(
  263. )
  264. ),
  265. 'URLS' => array(
  266. 1 => '',
  267. 2 => '',
  268. 3 => '',
  269. 4 => ''
  270. ),
  271. 'OOLANG' => true,
  272. 'OBJECT_SPLITTERS' => array(
  273. 1 => '.',
  274. ),
  275. 'REGEXPS' => array(
  276. ),
  277. 'STRICT_MODE_APPLIES' => GESHI_NEVER,
  278. 'SCRIPT_DELIMITERS' => array(
  279. ),
  280. 'HIGHLIGHT_STRICT_BLOCK' => array(
  281. )
  282. );