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