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