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.

cil.php 8.3KB

11 years ago
11 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. <?php
  2. /*************************************************************************************
  3. * cil.php
  4. * --------
  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
  9. *
  10. * CIL (Common Intermediate Language) language file for GeSHi.
  11. *
  12. * CHANGES
  13. * -------
  14. * 2004/10/24 (1.0.8)
  15. * - First Release
  16. *
  17. * TODO (updated 2007/10/24)
  18. * -------------------------
  19. *
  20. *************************************************************************************
  21. *
  22. * This file is part of GeSHi.
  23. *
  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.
  28. *
  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.
  33. *
  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
  37. *
  38. ************************************************************************************/
  39. $language_data = array (
  40. 'LANG_NAME' => 'CIL',
  41. 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
  42. 'COMMENT_SINGLE' => array('//'),
  43. 'COMMENT_MULTI' => array(),
  44. 'QUOTEMARKS' => array('"'),
  45. 'ESCAPE_CHAR' => '\\',
  46. 'KEYWORDS' => array(
  47. 1 => array(//Dotted
  48. '.zeroinit', '.vtfixup', '.vtentry', '.vtable', '.ver', '.try', '.subsystem', '.size', '.set', '.removeon',
  49. '.publickeytoken', '.publickey', '.property', '.permissionset', '.permission', '.pdirect', '.param', '.pack',
  50. '.override', '.other', '.namespace', '.mresource', '.module', '.method', '.maxstack', '.manifestres', '.locals',
  51. '.localized', '.locale', '.line', '.language', '.import', '.imagebase', '.hash', '.get', '.fire', '.file', '.field',
  52. '.export', '.event', '.entrypoint', '.emitbyte', '.data', '.custom', '.culture', '.ctor', '.corflags', '.class',
  53. '.cctor', '.assembly', '.addon'
  54. ),
  55. 2 => array(//Attributes
  56. 'wrapper', 'with', 'winapi', 'virtual', 'vector', 'vararg', 'value', 'userdefined', 'unused', 'unmanagedexp',
  57. 'unmanaged', 'unicode', 'to', 'tls', 'thiscall', 'synchronized', 'struct', 'strict', 'storage', 'stdcall',
  58. 'static', 'specialname', 'special', 'serializable', 'sequential', 'sealed', 'runtime', 'rtspecialname', 'request',
  59. 'reqsecobj', 'reqrefuse', 'reqopt', 'reqmin', 'record', 'public', 'privatescope', 'private', 'preservesig',
  60. 'prejitgrant', 'prejitdeny', 'platformapi', 'pinvokeimpl', 'pinned', 'permitonly', 'out', 'optil', 'opt',
  61. 'notserialized', 'notremotable', 'not_in_gc_heap', 'noprocess', 'noncaslinkdemand', 'noncasinheritance',
  62. 'noncasdemand', 'nometadata', 'nomangle', 'nomachine', 'noinlining', 'noappdomain', 'newslot', 'nested', 'native',
  63. 'modreq', 'modopt', 'marshal', 'managed', 'literal', 'linkcheck', 'lcid', 'lasterr', 'internalcall', 'interface',
  64. 'instance', 'initonly', 'init', 'inheritcheck', 'in', 'import', 'implicitres', 'implicitcom', 'implements',
  65. 'illegal', 'il', 'hidebysig', 'handler', 'fromunmanaged', 'forwardref', 'fixed', 'finally', 'final', 'filter',
  66. 'filetime', 'field', 'fault', 'fastcall', 'famorassem', 'family', 'famandassem', 'extern', 'extends', 'explicit',
  67. 'error', 'enum', 'endmac', 'deny', 'demand', 'default', 'custom', 'compilercontrolled', 'clsid', 'class', 'cil',
  68. 'cf', 'cdecl', 'catch', 'beforefieldinit', 'autochar', 'auto', 'at', 'assert', 'assembly', 'as', 'any', 'ansi',
  69. 'alignment', 'algorithm', 'abstract'
  70. ),
  71. 3 => array(//Types
  72. 'wchar', 'void', 'variant', 'unsigned', 'valuetype', 'typedref', 'tbstr', 'sysstring', 'syschar', 'string',
  73. 'streamed_object', 'stream', 'stored_object', 'safearray', 'objectref', 'object', 'nullref', 'method', 'lpwstr',
  74. 'lpvoid', 'lptstr', 'lpstruct', 'lpstr', 'iunknown', 'int64', 'int32', 'int16', 'int8', 'int', 'idispatch',
  75. 'hresult', 'float64', 'float32', 'float', 'decimal', 'date', 'currency', 'char', 'carray', 'byvalstr',
  76. 'bytearray', 'boxed', 'bool', 'blob_object', 'blob', 'array'
  77. ),
  78. 4 => array(//Prefix
  79. 'volatile', 'unaligned', 'tail', 'readonly', 'no', 'constrained'
  80. ),
  81. 5 => array(//Suffix
  82. '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'
  83. ),
  84. 6 => array(//Base
  85. 'xor', 'switch', 'sub', 'stloc',
  86. 'stind', 'starg',
  87. 'shr', 'shl', 'ret', 'rem', 'pop', 'or', 'not', 'nop', 'neg', 'mul',
  88. 'localloc', 'leave', 'ldnull', 'ldloca',
  89. 'ldloc', 'ldind', 'ldftn', 'ldc', 'ldarga',
  90. 'ldarg', 'jmp', 'initblk', 'endfinally', 'endfilter',
  91. 'endfault', 'dup', 'div', 'cpblk', 'conv', 'clt', 'ckfinite', 'cgt', 'ceq', 'calli',
  92. 'call', 'brzero', 'brtrue', 'brnull', 'brinst',
  93. 'brfalse', 'break', 'br', 'bne', 'blt', 'ble', 'bgt', 'bge', 'beq', 'arglist',
  94. 'and', 'add'
  95. ),
  96. 7 => array(//Object
  97. 'unbox.any', 'unbox', 'throw', 'stsfld', 'stobj', 'stfld', 'stelem', 'sizeof', 'rethrow', 'refanyval', 'refanytype', 'newobj',
  98. 'newarr', 'mkrefany', 'ldvirtftn', 'ldtoken', 'ldstr', 'ldsflda', 'ldsfld', 'ldobj', 'ldlen', 'ldflda', 'ldfld',
  99. 'ldelema', 'ldelem', 'isinst', 'initobj', 'cpobj', 'castclass',
  100. 'callvirt', 'callmostderived', 'box'
  101. ),
  102. 8 => array(//Other
  103. 'prefixref', 'prefix7', 'prefix6', 'prefix5', 'prefix4', 'prefix3', 'prefix2', 'prefix1', 'prefix0'
  104. ),
  105. 9 => array(//Literal
  106. 'true', 'null', 'false'
  107. ),
  108. 10 => array(//Comment-like
  109. '#line', '^THE_END^'
  110. )
  111. ),
  112. 'SYMBOLS' => array(
  113. '(', ')', '[', ']', '{', '}', '!', '!!'
  114. ),
  115. 'CASE_SENSITIVE' => array(
  116. GESHI_COMMENTS => false,
  117. 1 => true,
  118. 2 => true,
  119. 3 => true,
  120. 4 => true,
  121. 5 => true,
  122. 6 => true,
  123. 7 => true,
  124. 8 => true,
  125. 9 => true,
  126. 10 => true
  127. ),
  128. 'STYLES' => array(
  129. 'KEYWORDS' => array(
  130. 1 => 'color:maroon;font-weight:bold;',
  131. 2 => 'color:blue;font-weight:bold;',
  132. 3 => 'color:purple;font-weight:bold;',
  133. 4 => 'color:teal;',
  134. 5 => 'color:blue;',
  135. 6 => 'color:blue;',
  136. 7 => 'color:blue;',
  137. 8 => 'color:blue;',
  138. 9 => 'color:00008B',
  139. 10 => 'color:gray'
  140. ),
  141. 'COMMENTS' => array(
  142. 0 => 'color:gray;font-style:italic;'
  143. ),
  144. 'ESCAPE_CHAR' => array(
  145. 0 => 'color: #008000; font-weight: bold;'
  146. ),
  147. 'BRACKETS' => array(
  148. 0 => 'color: #006400;'
  149. ),
  150. 'STRINGS' => array(
  151. 0 => 'color: #008000;'
  152. ),
  153. 'NUMBERS' => array(
  154. 0 => 'color: #00008B;'
  155. ),
  156. 'METHODS' => array(
  157. 1 => 'color: #000033;'
  158. ),
  159. 'SYMBOLS' => array(
  160. 0 => 'color: #006400;'
  161. ),
  162. 'REGEXPS' => array(
  163. 0 => 'color:blue;'
  164. ),
  165. 'SCRIPT' => array(
  166. )
  167. ),
  168. 'URLS' => array(
  169. 1 => '',
  170. 2 => '',
  171. 3 => '',
  172. 4 => '',
  173. 5 => '',
  174. 6 => '',
  175. 7 => '',
  176. 8 => '',
  177. 9 => '',
  178. 10 => ''
  179. ),
  180. 'OOLANG' => true,
  181. 'OBJECT_SPLITTERS' => array(
  182. 1 => '::'
  183. ),
  184. 'REGEXPS' => array(
  185. 0 => '(?<=ldc\\.i4\\.)[0-8]|(?<=(?:ldarg|ldloc|stloc)\\.)[0-3]' # Pickup the opcodes that end with integers
  186. ),
  187. 'STRICT_MODE_APPLIES' => GESHI_NEVER,
  188. 'SCRIPT_DELIMITERS' => array(
  189. ),
  190. 'HIGHLIGHT_STRICT_BLOCK' => array(
  191. ),
  192. 'TAB_WIDTH' => 4
  193. );
  194. ?>