0
|
1 |
<?php
|
|
2 |
/*************************************************************************************
|
|
3 |
* xpp.php
|
|
4 |
* -------
|
|
5 |
* Author: Simon Butcher (simon@butcher.name)
|
|
6 |
* Copyright: (c) 2007 Simon Butcher (http://simon.butcher.name/)
|
|
7 |
* Release Version: 1.0.7.20
|
|
8 |
* CVS Revision Version: $Revision: 1.0 $
|
|
9 |
* Date Started: 2007/02/27
|
|
10 |
* Last Modified: $Date: 2007/02/28 00:00:00 $
|
|
11 |
*
|
|
12 |
* Axapta/Dynamics Ax X++ language file for GeSHi.
|
|
13 |
* For details, see <http://msdn.microsoft.com/en-us/library/aa867122.aspx>
|
|
14 |
*
|
|
15 |
* CHANGES
|
|
16 |
* -------
|
|
17 |
* 2007/02/28 (1.0.0)
|
|
18 |
* - First Release
|
|
19 |
*
|
|
20 |
* TODO (updated 2007/02/27)
|
|
21 |
* -------------------------
|
|
22 |
*
|
|
23 |
*************************************************************************************
|
|
24 |
*
|
|
25 |
* This file is part of GeSHi.
|
|
26 |
*
|
|
27 |
* GeSHi is free software; you can redistribute it and/or modify
|
|
28 |
* it under the terms of the GNU General Public License as published by
|
|
29 |
* the Free Software Foundation; either version 2 of the License, or
|
|
30 |
* (at your option) any later version.
|
|
31 |
*
|
|
32 |
* GeSHi is distributed in the hope that it will be useful,
|
|
33 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
34 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
35 |
* GNU General Public License for more details.
|
|
36 |
*
|
|
37 |
* You should have received a copy of the GNU General Public License
|
|
38 |
* along with GeSHi; if not, write to the Free Software
|
|
39 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
40 |
*
|
|
41 |
************************************************************************************/
|
|
42 |
|
|
43 |
$language_data = array (
|
|
44 |
'LANG_NAME' => 'X++',
|
|
45 |
'COMMENT_SINGLE' => array(1 => '//'),
|
|
46 |
'COMMENT_MULTI' => array('/*' => '*/'),
|
|
47 |
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
|
|
48 |
'QUOTEMARKS' => array("'", '"'),
|
|
49 |
'ESCAPE_CHAR' => '\\',
|
|
50 |
'KEYWORDS' => array(
|
|
51 |
1 => array( // Primitive types
|
|
52 |
'void',
|
|
53 |
'str',
|
|
54 |
'real',
|
|
55 |
'int64',
|
|
56 |
'int',
|
|
57 |
'date',
|
|
58 |
'container',
|
|
59 |
'boolean',
|
|
60 |
'anytype'
|
|
61 |
),
|
|
62 |
2 => array( // Keywords
|
|
63 |
'window',
|
|
64 |
'while',
|
|
65 |
'try',
|
|
66 |
'true',
|
|
67 |
'throw',
|
|
68 |
'switch',
|
|
69 |
'super',
|
|
70 |
'static',
|
|
71 |
'server',
|
|
72 |
'right',
|
|
73 |
'return',
|
|
74 |
'retry',
|
|
75 |
'public',
|
|
76 |
'protected',
|
|
77 |
'private',
|
|
78 |
'print',
|
|
79 |
'pause',
|
|
80 |
'null',
|
|
81 |
'new',
|
|
82 |
'mod',
|
|
83 |
'left',
|
|
84 |
'interface',
|
|
85 |
'implements',
|
|
86 |
'if',
|
|
87 |
'for',
|
|
88 |
'final',
|
|
89 |
'false',
|
|
90 |
'extends',
|
|
91 |
'else',
|
|
92 |
'edit',
|
|
93 |
'do',
|
|
94 |
'div',
|
|
95 |
'display',
|
|
96 |
'default',
|
|
97 |
'continue',
|
|
98 |
'client',
|
|
99 |
'class',
|
|
100 |
'changeCompany',
|
|
101 |
'case',
|
|
102 |
'breakpoint',
|
|
103 |
'break',
|
|
104 |
'at',
|
|
105 |
'abstract'
|
|
106 |
),
|
|
107 |
3 => array( // Functions within the Axapta kernel
|
|
108 |
'year',
|
|
109 |
'wkofyr',
|
|
110 |
'webwebpartstr',
|
|
111 |
'webstaticfilestr',
|
|
112 |
'websitetempstr',
|
|
113 |
'websitedefstr',
|
|
114 |
'webreportstr',
|
|
115 |
'webpagedefstr',
|
|
116 |
'weboutputcontentitemstr',
|
|
117 |
'webmenustr',
|
|
118 |
'webletitemstr',
|
|
119 |
'webformstr',
|
|
120 |
'webdisplaycontentitemstr',
|
|
121 |
'webactionitemstr',
|
|
122 |
'varstr',
|
|
123 |
'utilmoyr',
|
|
124 |
'uint2str',
|
|
125 |
'typeof',
|
|
126 |
'typeid',
|
|
127 |
'trunc',
|
|
128 |
'today',
|
|
129 |
'timenow',
|
|
130 |
'time2str',
|
|
131 |
'term',
|
|
132 |
'tanh',
|
|
133 |
'tan',
|
|
134 |
'tablestr',
|
|
135 |
'tablestaticmethodstr',
|
|
136 |
'tablepname',
|
|
137 |
'tablenum',
|
|
138 |
'tablename2id',
|
|
139 |
'tablemethodstr',
|
|
140 |
'tableid2pname',
|
|
141 |
'tableid2name',
|
|
142 |
'tablefieldgroupstr',
|
|
143 |
'tablecollectionstr',
|
|
144 |
'systemdateset',
|
|
145 |
'systemdateget',
|
|
146 |
'syd',
|
|
147 |
'substr',
|
|
148 |
'strupr',
|
|
149 |
'strscan',
|
|
150 |
'strrtrim',
|
|
151 |
'strrep',
|
|
152 |
'strrem',
|
|
153 |
'strprompt',
|
|
154 |
'strpoke',
|
|
155 |
'strnfind',
|
|
156 |
'strlwr',
|
|
157 |
'strltrim',
|
|
158 |
'strline',
|
|
159 |
'strlen',
|
|
160 |
'strkeep',
|
|
161 |
'strins',
|
|
162 |
'strfmt',
|
|
163 |
'strfind',
|
|
164 |
'strdel',
|
|
165 |
'strcolseq',
|
|
166 |
'strcmp',
|
|
167 |
'stralpha',
|
|
168 |
'str2time',
|
|
169 |
'str2num',
|
|
170 |
'str2int64',
|
|
171 |
'str2int',
|
|
172 |
'str2guid',
|
|
173 |
'str2enum',
|
|
174 |
'str2date',
|
|
175 |
'staticmethodstr',
|
|
176 |
'sln',
|
|
177 |
'sleep',
|
|
178 |
'sinh',
|
|
179 |
'sin',
|
|
180 |
'setprefix',
|
|
181 |
'sessionid',
|
|
182 |
'securitykeystr',
|
|
183 |
'securitykeynum',
|
|
184 |
'runbuf',
|
|
185 |
'runas',
|
|
186 |
'round',
|
|
187 |
'resourcestr',
|
|
188 |
'reportstr',
|
|
189 |
'refprintall',
|
|
190 |
'rate',
|
|
191 |
'querystr',
|
|
192 |
'pv',
|
|
193 |
'pt',
|
|
194 |
'prmisdefault',
|
|
195 |
'primoyr',
|
|
196 |
'prevyr',
|
|
197 |
'prevqtr',
|
|
198 |
'prevmth',
|
|
199 |
'power',
|
|
200 |
'pmt',
|
|
201 |
'num2str',
|
|
202 |
'num2date',
|
|
203 |
'num2char',
|
|
204 |
'nextyr',
|
|
205 |
'nextqtr',
|
|
206 |
'nextmth',
|
|
207 |
'newguid',
|
|
208 |
'mthofyr',
|
|
209 |
'mthname',
|
|
210 |
'mkdate',
|
|
211 |
'minint',
|
|
212 |
'min',
|
|
213 |
'methodstr',
|
|
214 |
'menustr',
|
|
215 |
'menuitemoutputstr',
|
|
216 |
'menuitemdisplaystr',
|
|
217 |
'menuitemactionstr',
|
|
218 |
'maxint',
|
|
219 |
'maxdate',
|
|
220 |
'max',
|
|
221 |
'match',
|
|
222 |
'logn',
|
|
223 |
'log10',
|
|
224 |
'literalstr',
|
|
225 |
'licensecodestr',
|
|
226 |
'licensecodenum',
|
|
227 |
'intvnorm',
|
|
228 |
'intvno',
|
|
229 |
'intvname',
|
|
230 |
'intvmax',
|
|
231 |
'int64str',
|
|
232 |
'int64str',
|
|
233 |
'indexstr',
|
|
234 |
'indexnum',
|
|
235 |
'indexname2id',
|
|
236 |
'indexid2name',
|
|
237 |
'idg',
|
|
238 |
'identifierstr',
|
|
239 |
'helpfilestr',
|
|
240 |
'helpdevstr',
|
|
241 |
'helpapplstr',
|
|
242 |
'guid2str',
|
|
243 |
'getprefix',
|
|
244 |
'getCurrentUTCTime',
|
|
245 |
'fv',
|
|
246 |
'funcname',
|
|
247 |
'frac',
|
|
248 |
'formstr',
|
|
249 |
'fieldstr',
|
|
250 |
'fieldpname',
|
|
251 |
'fieldnum',
|
|
252 |
'fieldname2id',
|
|
253 |
'fieldid2pname',
|
|
254 |
'fieldid2name',
|
|
255 |
'extendedTypeStr',
|
|
256 |
'extendedTypeNum',
|
|
257 |
'exp10',
|
|
258 |
'exp',
|
|
259 |
'evalbuf',
|
|
260 |
'enumstr',
|
|
261 |
'enumnum',
|
|
262 |
'enumcnt',
|
|
263 |
'enum2str',
|
|
264 |
'endmth',
|
|
265 |
'dimof',
|
|
266 |
'dg',
|
|
267 |
'decround',
|
|
268 |
'ddb',
|
|
269 |
'dayofyr',
|
|
270 |
'dayofwk',
|
|
271 |
'dayofmth',
|
|
272 |
'dayname',
|
|
273 |
'date2str',
|
|
274 |
'date2num',
|
|
275 |
'curuserid',
|
|
276 |
'curext',
|
|
277 |
'cterm',
|
|
278 |
'cosh',
|
|
279 |
'cos',
|
|
280 |
'corrflagset',
|
|
281 |
'corrflagget',
|
|
282 |
'convertUTCTimeToLocalTime',
|
|
283 |
'convertUTCDateToLocalDate',
|
|
284 |
'conpoke',
|
|
285 |
'conpeek',
|
|
286 |
'connull',
|
|
287 |
'conlen',
|
|
288 |
'conins',
|
|
289 |
'confind',
|
|
290 |
'configurationkeystr',
|
|
291 |
'configurationkeynum',
|
|
292 |
'condel',
|
|
293 |
'classstr',
|
|
294 |
'classnum',
|
|
295 |
'classidget',
|
|
296 |
'char2num',
|
|
297 |
'beep',
|
|
298 |
'atan',
|
|
299 |
'asin',
|
|
300 |
'ascii2ansi',
|
|
301 |
'any2str',
|
|
302 |
'any2real',
|
|
303 |
'any2int64',
|
|
304 |
'any2int',
|
|
305 |
'any2guid',
|
|
306 |
'any2enum',
|
|
307 |
'any2date',
|
|
308 |
'ansi2ascii',
|
|
309 |
'acos',
|
|
310 |
'abs'
|
|
311 |
),
|
|
312 |
4 => array( // X++ SQL stuff
|
|
313 |
'where',
|
|
314 |
'update_recordset',
|
|
315 |
'ttsCommit',
|
|
316 |
'ttsBegin',
|
|
317 |
'ttsAbort',
|
|
318 |
'sum',
|
|
319 |
'setting',
|
|
320 |
'select',
|
|
321 |
'reverse',
|
|
322 |
'pessimisticLock',
|
|
323 |
'outer',
|
|
324 |
'order by',
|
|
325 |
'optimisticLock',
|
|
326 |
'notExists',
|
|
327 |
'noFetch',
|
|
328 |
'next',
|
|
329 |
'minof',
|
|
330 |
'maxof',
|
|
331 |
'like',
|
|
332 |
'join',
|
|
333 |
'insert_recordset',
|
|
334 |
'index hint',
|
|
335 |
'index',
|
|
336 |
'group by',
|
|
337 |
'from',
|
|
338 |
'forUpdate',
|
|
339 |
'forceSelectOrder',
|
|
340 |
'forcePlaceholders',
|
|
341 |
'forceNestedLoop',
|
|
342 |
'forceLiterals',
|
|
343 |
'flush',
|
|
344 |
'firstOnly',
|
|
345 |
'firstFast',
|
|
346 |
'exists',
|
|
347 |
'desc',
|
|
348 |
'delete_from',
|
|
349 |
'count',
|
|
350 |
'avg',
|
|
351 |
'asc'
|
|
352 |
)
|
|
353 |
),
|
|
354 |
'SYMBOLS' => array( // X++ symbols
|
|
355 |
'!',
|
|
356 |
'&',
|
|
357 |
'(',
|
|
358 |
')',
|
|
359 |
'*',
|
|
360 |
'^',
|
|
361 |
'|',
|
|
362 |
'~',
|
|
363 |
'+',
|
|
364 |
',',
|
|
365 |
'-',
|
|
366 |
'/',
|
|
367 |
':',
|
|
368 |
'<',
|
|
369 |
'=',
|
|
370 |
'>',
|
|
371 |
'?',
|
|
372 |
'[',
|
|
373 |
']',
|
|
374 |
'{',
|
|
375 |
'}'
|
|
376 |
),
|
|
377 |
'CASE_SENSITIVE' => array(
|
|
378 |
GESHI_COMMENTS => true,
|
|
379 |
1 => false,
|
|
380 |
2 => false,
|
|
381 |
3 => false,
|
|
382 |
4 => false
|
|
383 |
),
|
|
384 |
'STYLES' => array(
|
|
385 |
'KEYWORDS' => array(
|
|
386 |
1 => 'color: #0000ff;',
|
|
387 |
2 => 'color: #0000ff;',
|
|
388 |
3 => 'color: #0000ff;',
|
|
389 |
4 => 'color: #0000ff;'
|
|
390 |
),
|
|
391 |
'COMMENTS' => array(
|
|
392 |
1 => 'color: #007f00;',
|
|
393 |
'MULTI' => 'color: #007f00; font-style: italic;'
|
|
394 |
),
|
|
395 |
'ESCAPE_CHAR' => array(
|
|
396 |
0 => 'color: #000000;'
|
|
397 |
),
|
|
398 |
'BRACKETS' => array(
|
|
399 |
0 => 'color: #000000;'
|
|
400 |
),
|
|
401 |
'STRINGS' => array(
|
|
402 |
0 => 'color: #ff0000;'
|
|
403 |
),
|
|
404 |
'NUMBERS' => array(
|
|
405 |
0 => 'color: #000000;'
|
|
406 |
),
|
|
407 |
'METHODS' => array(
|
|
408 |
1 => 'color: #000000;',
|
|
409 |
2 => 'color: #000000;'
|
|
410 |
),
|
|
411 |
'SYMBOLS' => array(
|
|
412 |
0 => 'color: #00007f;'
|
|
413 |
),
|
|
414 |
'REGEXPS' => array(
|
|
415 |
),
|
|
416 |
'SCRIPT' => array(
|
|
417 |
)
|
|
418 |
),
|
|
419 |
'URLS' => array(
|
|
420 |
),
|
|
421 |
'OOLANG' => true,
|
|
422 |
'OBJECT_SPLITTERS' => array(
|
|
423 |
1 => '.',
|
|
424 |
2 => '::'
|
|
425 |
),
|
|
426 |
'REGEXPS' => array(
|
|
427 |
),
|
|
428 |
'STRICT_MODE_APPLIES' => GESHI_NEVER,
|
|
429 |
'SCRIPT_DELIMITERS' => array(
|
|
430 |
),
|
|
431 |
'HIGHLIGHT_STRICT_BLOCK' => array(
|
|
432 |
)
|
|
433 |
);
|
|
434 |
|
|
435 |
?>
|