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.

437 lines
11KB

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