A tumblelog CMS built on AJAX, PHP and MySQL.

xpp.php 7.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434
  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.21
  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. 'int64str',
  230. 'indexstr',
  231. 'indexnum',
  232. 'indexname2id',
  233. 'indexid2name',
  234. 'idg',
  235. 'identifierstr',
  236. 'helpfilestr',
  237. 'helpdevstr',
  238. 'helpapplstr',
  239. 'guid2str',
  240. 'getprefix',
  241. 'getCurrentUTCTime',
  242. 'fv',
  243. 'funcname',
  244. 'frac',
  245. 'formstr',
  246. 'fieldstr',
  247. 'fieldpname',
  248. 'fieldnum',
  249. 'fieldname2id',
  250. 'fieldid2pname',
  251. 'fieldid2name',
  252. 'extendedTypeStr',
  253. 'extendedTypeNum',
  254. 'exp10',
  255. 'exp',
  256. 'evalbuf',
  257. 'enumstr',
  258. 'enumnum',
  259. 'enumcnt',
  260. 'enum2str',
  261. 'endmth',
  262. 'dimof',
  263. 'dg',
  264. 'decround',
  265. 'ddb',
  266. 'dayofyr',
  267. 'dayofwk',
  268. 'dayofmth',
  269. 'dayname',
  270. 'date2str',
  271. 'date2num',
  272. 'curuserid',
  273. 'curext',
  274. 'cterm',
  275. 'cosh',
  276. 'cos',
  277. 'corrflagset',
  278. 'corrflagget',
  279. 'convertUTCTimeToLocalTime',
  280. 'convertUTCDateToLocalDate',
  281. 'conpoke',
  282. 'conpeek',
  283. 'connull',
  284. 'conlen',
  285. 'conins',
  286. 'confind',
  287. 'configurationkeystr',
  288. 'configurationkeynum',
  289. 'condel',
  290. 'classstr',
  291. 'classnum',
  292. 'classidget',
  293. 'char2num',
  294. 'beep',
  295. 'atan',
  296. 'asin',
  297. 'ascii2ansi',
  298. 'any2str',
  299. 'any2real',
  300. 'any2int64',
  301. 'any2int',
  302. 'any2guid',
  303. 'any2enum',
  304. 'any2date',
  305. 'ansi2ascii',
  306. 'acos',
  307. 'abs'
  308. ),
  309. 4 => array( // X++ SQL stuff
  310. 'where',
  311. 'update_recordset',
  312. 'ttsCommit',
  313. 'ttsBegin',
  314. 'ttsAbort',
  315. 'sum',
  316. 'setting',
  317. 'select',
  318. 'reverse',
  319. 'pessimisticLock',
  320. 'outer',
  321. 'order by',
  322. 'optimisticLock',
  323. 'notExists',
  324. 'noFetch',
  325. 'next',
  326. 'minof',
  327. 'maxof',
  328. 'like',
  329. 'join',
  330. 'insert_recordset',
  331. 'index hint',
  332. 'index',
  333. 'group by',
  334. 'from',
  335. 'forUpdate',
  336. 'forceSelectOrder',
  337. 'forcePlaceholders',
  338. 'forceNestedLoop',
  339. 'forceLiterals',
  340. 'flush',
  341. 'firstOnly',
  342. 'firstFast',
  343. 'exists',
  344. 'desc',
  345. 'delete_from',
  346. 'count',
  347. 'avg',
  348. 'asc'
  349. )
  350. ),
  351. 'SYMBOLS' => array( // X++ symbols
  352. '!',
  353. '&',
  354. '(',
  355. ')',
  356. '*',
  357. '^',
  358. '|',
  359. '~',
  360. '+',
  361. ',',
  362. '-',
  363. '/',
  364. ':',
  365. '<',
  366. '=',
  367. '>',
  368. '?',
  369. '[',
  370. ']',
  371. '{',
  372. '}'
  373. ),
  374. 'CASE_SENSITIVE' => array(
  375. GESHI_COMMENTS => true,
  376. 1 => false,
  377. 2 => false,
  378. 3 => false,
  379. 4 => false
  380. ),
  381. 'STYLES' => array(
  382. 'KEYWORDS' => array(
  383. 1 => 'color: #0000ff;',
  384. 2 => 'color: #0000ff;',
  385. 3 => 'color: #0000ff;',
  386. 4 => 'color: #0000ff;'
  387. ),
  388. 'COMMENTS' => array(
  389. 1 => 'color: #007f00;',
  390. 'MULTI' => 'color: #007f00; font-style: italic;'
  391. ),
  392. 'ESCAPE_CHAR' => array(
  393. 0 => 'color: #000000;'
  394. ),
  395. 'BRACKETS' => array(
  396. 0 => 'color: #000000;'
  397. ),
  398. 'STRINGS' => array(
  399. 0 => 'color: #ff0000;'
  400. ),
  401. 'NUMBERS' => array(
  402. 0 => 'color: #000000;'
  403. ),
  404. 'METHODS' => array(
  405. 1 => 'color: #000000;',
  406. 2 => 'color: #000000;'
  407. ),
  408. 'SYMBOLS' => array(
  409. 0 => 'color: #00007f;'
  410. ),
  411. 'REGEXPS' => array(
  412. ),
  413. 'SCRIPT' => array(
  414. )
  415. ),
  416. 'URLS' => array(
  417. ),
  418. 'OOLANG' => true,
  419. 'OBJECT_SPLITTERS' => array(
  420. 1 => '.',
  421. 2 => '::'
  422. ),
  423. 'REGEXPS' => array(
  424. ),
  425. 'STRICT_MODE_APPLIES' => GESHI_NEVER,
  426. 'SCRIPT_DELIMITERS' => array(
  427. ),
  428. 'HIGHLIGHT_STRICT_BLOCK' => array(
  429. )
  430. );
  431. ?>