2 /*************************************************************************************
5 * Author: Marcus Griep (neoeinstein+GeSHi@gmail.com)
6 * Copyright: (c) 2007 Marcus Griep (http://www.xpdm.us)
7 * Release Version: 1.0.8.11
8 * Date Started: 2007/10/24
10 * CIL (Common Intermediate Language) language file for GeSHi.
17 * TODO (updated 2007/10/24)
18 * -------------------------
20 *************************************************************************************
22 * This file is part of GeSHi.
24 * GeSHi is free software; you can redistribute it and/or modify
25 * it under the terms of the GNU General Public License as published by
26 * the Free Software Foundation; either version 2 of the License, or
27 * (at your option) any later version.
29 * GeSHi is distributed in the hope that it will be useful,
30 * but WITHOUT ANY WARRANTY; without even the implied warranty of
31 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32 * GNU General Public License for more details.
34 * You should have received a copy of the GNU General Public License
35 * along with GeSHi; if not, write to the Free Software
36 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
38 ************************************************************************************/
40 $language_data = array (
42 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE
,
43 'COMMENT_SINGLE' => array('//'),
44 'COMMENT_MULTI' => array(),
45 'QUOTEMARKS' => array('"'),
46 'ESCAPE_CHAR' => '\\',
49 '.zeroinit', '.vtfixup', '.vtentry', '.vtable', '.ver', '.try', '.subsystem', '.size', '.set', '.removeon',
50 '.publickeytoken', '.publickey', '.property', '.permissionset', '.permission', '.pdirect', '.param', '.pack',
51 '.override', '.other', '.namespace', '.mresource', '.module', '.method', '.maxstack', '.manifestres', '.locals',
52 '.localized', '.locale', '.line', '.language', '.import', '.imagebase', '.hash', '.get', '.fire', '.file', '.field',
53 '.export', '.event', '.entrypoint', '.emitbyte', '.data', '.custom', '.culture', '.ctor', '.corflags', '.class',
54 '.cctor', '.assembly', '.addon'
56 2 => array(//Attributes
57 'wrapper', 'with', 'winapi', 'virtual', 'vector', 'vararg', 'value', 'userdefined', 'unused', 'unmanagedexp',
58 'unmanaged', 'unicode', 'to', 'tls', 'thiscall', 'synchronized', 'struct', 'strict', 'storage', 'stdcall',
59 'static', 'specialname', 'special', 'serializable', 'sequential', 'sealed', 'runtime', 'rtspecialname', 'request',
60 'reqsecobj', 'reqrefuse', 'reqopt', 'reqmin', 'record', 'public', 'privatescope', 'private', 'preservesig',
61 'prejitgrant', 'prejitdeny', 'platformapi', 'pinvokeimpl', 'pinned', 'permitonly', 'out', 'optil', 'opt',
62 'notserialized', 'notremotable', 'not_in_gc_heap', 'noprocess', 'noncaslinkdemand', 'noncasinheritance',
63 'noncasdemand', 'nometadata', 'nomangle', 'nomachine', 'noinlining', 'noappdomain', 'newslot', 'nested', 'native',
64 'modreq', 'modopt', 'marshal', 'managed', 'literal', 'linkcheck', 'lcid', 'lasterr', 'internalcall', 'interface',
65 'instance', 'initonly', 'init', 'inheritcheck', 'in', 'import', 'implicitres', 'implicitcom', 'implements',
66 'illegal', 'il', 'hidebysig', 'handler', 'fromunmanaged', 'forwardref', 'fixed', 'finally', 'final', 'filter',
67 'filetime', 'field', 'fault', 'fastcall', 'famorassem', 'family', 'famandassem', 'extern', 'extends', 'explicit',
68 'error', 'enum', 'endmac', 'deny', 'demand', 'default', 'custom', 'compilercontrolled', 'clsid', 'class', 'cil',
69 'cf', 'cdecl', 'catch', 'beforefieldinit', 'autochar', 'auto', 'at', 'assert', 'assembly', 'as', 'any', 'ansi',
70 'alignment', 'algorithm', 'abstract'
73 'wchar', 'void', 'variant', 'unsigned', 'valuetype', 'typedref', 'tbstr', 'sysstring', 'syschar', 'string',
74 'streamed_object', 'stream', 'stored_object', 'safearray', 'objectref', 'object', 'nullref', 'method', 'lpwstr',
75 'lpvoid', 'lptstr', 'lpstruct', 'lpstr', 'iunknown', 'int64', 'int32', 'int16', 'int8', 'int', 'idispatch',
76 'hresult', 'float64', 'float32', 'float', 'decimal', 'date', 'currency', 'char', 'carray', 'byvalstr',
77 'bytearray', 'boxed', 'bool', 'blob_object', 'blob', 'array'
80 'volatile', 'unaligned', 'tail', 'readonly', 'no', 'constrained'
83 'un', 'u8', 'u4', 'u2', 'u1', 'u', 's', 'ref', 'r8', 'r4', 'm1', 'i8', 'i4', 'i2', 'i1', 'i'#, '.8', '.7', '.6', '.5', '.4', '.3', '.2', '.1', '.0'
86 'xor', 'switch', 'sub', 'stloc',
88 'shr', 'shl', 'ret', 'rem', 'pop', 'or', 'not', 'nop', 'neg', 'mul',
89 'localloc', 'leave', 'ldnull', 'ldloca',
90 'ldloc', 'ldind', 'ldftn', 'ldc', 'ldarga',
91 'ldarg', 'jmp', 'initblk', 'endfinally', 'endfilter',
92 'endfault', 'dup', 'div', 'cpblk', 'conv', 'clt', 'ckfinite', 'cgt', 'ceq', 'calli',
93 'call', 'brzero', 'brtrue', 'brnull', 'brinst',
94 'brfalse', 'break', 'br', 'bne', 'blt', 'ble', 'bgt', 'bge', 'beq', 'arglist',
98 'unbox.any', 'unbox', 'throw', 'stsfld', 'stobj', 'stfld', 'stelem', 'sizeof', 'rethrow', 'refanyval', 'refanytype', 'newobj',
99 'newarr', 'mkrefany', 'ldvirtftn', 'ldtoken', 'ldstr', 'ldsflda', 'ldsfld', 'ldobj', 'ldlen', 'ldflda', 'ldfld',
100 'ldelema', 'ldelem', 'isinst', 'initobj', 'cpobj', 'castclass',
101 'callvirt', 'callmostderived', 'box'
104 'prefixref', 'prefix7', 'prefix6', 'prefix5', 'prefix4', 'prefix3', 'prefix2', 'prefix1', 'prefix0'
107 'true', 'null', 'false'
109 10 => array(//Comment-like
114 '(', ')', '[', ']', '{', '}', '!', '!!'
116 'CASE_SENSITIVE' => array(
117 GESHI_COMMENTS
=> false,
131 1 => 'color:maroon;font-weight:bold;',
132 2 => 'color:blue;font-weight:bold;',
133 3 => 'color:purple;font-weight:bold;',
143 0 => 'color:gray;font-style:italic;'
145 'ESCAPE_CHAR' => array(
146 0 => 'color: #008000; font-weight: bold;'
149 0 => 'color: #006400;'
152 0 => 'color: #008000;'
155 0 => 'color: #00008B;'
158 1 => 'color: #000033;'
161 0 => 'color: #006400;'
182 'OBJECT_SPLITTERS' => array(
186 0 => '(?<=ldc\\.i4\\.)[0-8]|(?<=(?:ldarg|ldloc|stloc)\\.)[0-3]' # Pickup the opcodes that end with integers
188 'STRICT_MODE_APPLIES' => GESHI_NEVER
,
189 'SCRIPT_DELIMITERS' => array(
191 'HIGHLIGHT_STRICT_BLOCK' => array(