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.

icon.php 8.5KB

11 years ago
11 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. <?php
  2. /*************************************************************************************
  3. * icon.php
  4. * --------
  5. * Author: Matt Oates (mattoates@gmail.com)
  6. * Copyright: (c) 2010 Matt Oates (http://mattoates.co.uk)
  7. * Release Version: 1.0.8.11
  8. * Date Started: 2010/04/24
  9. *
  10. * Icon language file for GeSHi.
  11. *
  12. * CHANGES
  13. * -------
  14. * 2010/04/24 (0.0.0.2)
  15. * - Validated with Geshi langcheck.php FAILED due to preprocessor keywords looking like symbols
  16. * - Hard wrapped to improve readability
  17. * 2010/04/20 (0.0.0.1)
  18. * - First Release
  19. *
  20. * TODO (updated 2010/04/20)
  21. * -------------------------
  22. * - Do the &amp; need replacing with &?
  23. *
  24. *************************************************************************************
  25. *
  26. * This file is part of GeSHi.
  27. *
  28. * GeSHi is free software; you can redistribute it and/or modify
  29. * it under the terms of the GNU General Public License as published by
  30. * the Free Software Foundation; either version 2 of the License, or
  31. * (at your option) any later version.
  32. *
  33. * GeSHi is distributed in the hope that it will be useful,
  34. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  35. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  36. * GNU General Public License for more details.
  37. *
  38. * You should have received a copy of the GNU General Public License
  39. * along with GeSHi; if not, write to the Free Software
  40. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  41. *
  42. ************************************************************************************/
  43. $language_data = array(
  44. 'LANG_NAME' => 'Icon',
  45. 'COMMENT_SINGLE' => array(1 => '#'),
  46. 'COMMENT_MULTI' => array(),
  47. 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
  48. 'QUOTEMARKS' => array('"', '\''),
  49. 'ESCAPE_CHAR' => '\\',
  50. 'KEYWORDS' => array(
  51. 1 => array(
  52. 'break', 'case', 'continue', 'create', 'default', 'do', 'else',
  53. 'end', 'every', 'fail', 'for', 'if', 'import', 'initial',
  54. 'initially', 'invocable', 'link', 'next', 'not', 'of', 'package',
  55. 'procedure', 'record', 'repeat', 'return', 'switch', 'suspend',
  56. 'then', 'to', 'until', 'while'
  57. ),
  58. 2 => array(
  59. 'global', 'local', 'static'
  60. ),
  61. 3 => array(
  62. 'allocated', 'ascii', 'clock', 'collections',
  63. 'column', 'cset', 'current', 'date', 'dateline', 'digits',
  64. 'dump', 'e', 'error', 'errornumber', 'errortext',
  65. 'errorvalue', 'errout', 'eventcode', 'eventsource', 'eventvalue',
  66. 'fail', 'features', 'file', 'host', 'input', 'lcase',
  67. 'letters', 'level', 'line', 'main', 'now', 'null',
  68. 'output', 'phi', 'pi', 'pos', 'progname', 'random',
  69. 'regions', 'source', 'storage', 'subject', 'syserr', 'time',
  70. 'trace', 'ucase', 'version', 'col', 'control', 'interval',
  71. 'ldrag', 'lpress', 'lrelease', 'mdrag', 'meta', 'mpress',
  72. 'mrelease', 'rdrag', 'resize', 'row', 'rpress', 'rrelease',
  73. 'shift', 'window', 'x', 'y'
  74. ),
  75. 4 => array(
  76. 'abs', 'acos', 'any', 'args', 'asin', 'atan', 'bal', 'center', 'char',
  77. 'chmod', 'close', 'cofail', 'collect', 'copy', 'cos', 'cset', 'ctime', 'delay', 'delete',
  78. 'detab', 'display', 'dtor', 'entab', 'errorclear', 'event', 'eventmask', 'EvGet', 'exit',
  79. 'exp', 'fetch', 'fieldnames', 'find', 'flock', 'flush', 'function', 'get', 'getch',
  80. 'getche', 'getenv', 'gettimeofday', 'globalnames', 'gtime', 'iand', 'icom', 'image',
  81. 'insert', 'integer', 'ior', 'ishift', 'ixor', 'key', 'left', 'list', 'load', 'loadfunc',
  82. 'localnames', 'log', 'many', 'map', 'match', 'member', 'mkdir', 'move', 'name', 'numeric',
  83. 'open', 'opmask', 'ord', 'paramnames', 'parent', 'pipe', 'pop', 'pos', 'proc', 'pull',
  84. 'push', 'put', 'read', 'reads', 'real', 'receive', 'remove', 'rename', 'repl', 'reverse',
  85. 'right', 'rmdir', 'rtod', 'runerr', 'seek', 'select', 'send', 'seq', 'serial', 'set',
  86. 'setenv', 'sort', 'sortf', 'sql', 'sqrt', 'stat', 'stop', 'string', 'system', 'tab',
  87. 'table', 'tan', 'trap', 'trim', 'truncate', 'type', 'upto', 'utime', 'variable', 'where',
  88. 'write', 'writes'
  89. ),
  90. 5 => array(
  91. 'Active', 'Alert', 'Bg', 'Clip', 'Clone', 'Color', 'ColorValue',
  92. 'CopyArea', 'Couple', 'DrawArc', 'DrawCircle', 'DrawCurve', 'DrawCylinder', 'DrawDisk',
  93. 'DrawImage', 'DrawLine', 'DrawPoint', 'DrawPolygon', 'DrawRectangle', 'DrawSegment',
  94. 'DrawSphere', 'DrawString', 'DrawTorus', 'EraseArea', 'Event', 'Fg', 'FillArc',
  95. 'FillCircle', 'FillPolygon', 'FillRectangle', 'Font', 'FreeColor', 'GotoRC', 'GotoXY',
  96. 'IdentifyMatrix', 'Lower', 'MatrixMode', 'NewColor', 'PaletteChars', 'PaletteColor',
  97. 'PaletteKey', 'Pattern', 'Pending', 'Pixel', 'PopMatrix', 'PushMatrix', 'PushRotate',
  98. 'PushScale', 'PushTranslate', 'QueryPointer', 'Raise', 'ReadImage', 'Refresh', 'Rotate',
  99. 'Scale', 'Texcoord', 'TextWidth', 'Texture', 'Translate', 'Uncouple', 'WAttrib',
  100. 'WDefault', 'WFlush', 'WindowContents', 'WriteImage', 'WSync'
  101. ),
  102. 6 => array(
  103. 'define', 'include', 'ifdef', 'ifndef', 'else', 'endif', 'error',
  104. 'line', 'undef'
  105. ),
  106. 7 => array(
  107. '_V9', '_AMIGA', '_ACORN', '_CMS', '_MACINTOSH', '_MSDOS_386',
  108. '_MS_WINDOWS_NT', '_MSDOS', '_MVS', '_OS2', '_POR', 'T', '_UNIX', '_POSIX', '_DBM',
  109. '_VMS', '_ASCII', '_EBCDIC', '_CO_EXPRESSIONS', '_CONSOLE_WINDOW', '_DYNAMIC_LOADING',
  110. '_EVENT_MONITOR', '_EXTERNAL_FUNCTIONS', '_KEYBOARD_FUNCTIONS', '_LARGE_INTEGERS',
  111. '_MULTITASKING', '_PIPES', '_RECORD_IO', '_SYSTEM_FUNCTION', '_MESSAGING', '_GRAPHICS',
  112. '_X_WINDOW_SYSTEM', '_MS_WINDOWS', '_WIN32', '_PRESENTATION_MGR', '_ARM_FUNCTIONS',
  113. '_DOS_FUNCTIONS'
  114. ),
  115. 8 => array(
  116. 'line'
  117. )
  118. ),
  119. 'SYMBOLS' => array(
  120. 1 => array(
  121. '(', ')', '{', '}', '[', ']', '+', '-', '*', '/', '\\', '%', '=', '<', '>', '!', '^',
  122. '&', '|', '?', ':', ';', ',', '.', '~', '@'
  123. ),
  124. 2 => array(
  125. '$(', '$)', '$<', '$>', '$'
  126. )
  127. ),
  128. 'CASE_SENSITIVE' => array(
  129. GESHI_COMMENTS => false,
  130. 1 => true,
  131. 2 => true,
  132. 3 => true,
  133. 4 => true,
  134. 5 => true,
  135. 6 => true,
  136. 7 => true,
  137. 8 => true
  138. ),
  139. 'STYLES' => array(
  140. 'KEYWORDS' => array(
  141. 1 => 'color: #b1b100;',
  142. 2 => 'color: #b1b100;',
  143. 3 => 'color: #b1b100;',
  144. 4 => 'color: #b1b100;',
  145. 5 => 'color: #b1b100;',
  146. 6 => 'color: #b1b100;',
  147. 7 => 'color: #b1b100;',
  148. 8 => 'color: #b1b100;'
  149. ),
  150. 'COMMENTS' => array(
  151. 1 => 'color: #666666; font-style: italic;',
  152. 'MULTI' => 'color: #666666; font-style: italic;'
  153. ),
  154. 'ESCAPE_CHAR' => array(
  155. 0 => 'color: #000099; font-weight: bold;'
  156. ),
  157. 'BRACKETS' => array(
  158. 0 => 'color: #009900;'
  159. ),
  160. 'STRINGS' => array(
  161. 0 => 'color: #0000ff;'
  162. ),
  163. 'NUMBERS' => array(
  164. 0 => 'color: #cc66cc;',
  165. ),
  166. 'METHODS' => array(
  167. 0 => 'color: #004000;'
  168. ),
  169. 'SYMBOLS' => array(
  170. 1 => 'color: #339933;',
  171. 2 => 'color: #b1b100;'
  172. ),
  173. 'REGEXPS' => array(),
  174. 'SCRIPT' => array()
  175. ),
  176. 'URLS' => array(
  177. 1 => '',
  178. 2 => '',
  179. 3 => '',
  180. 4 => '',
  181. 5 => '',
  182. 6 => '',
  183. 7 => '',
  184. 8 => ''
  185. ),
  186. 'OOLANG' => true,
  187. 'OBJECT_SPLITTERS' => array(1 => '.'),
  188. 'REGEXPS' => array(),
  189. 'STRICT_MODE_APPLIES' => GESHI_NEVER,
  190. 'SCRIPT_DELIMITERS' => array(),
  191. 'HIGHLIGHT_STRICT_BLOCK' => array(),
  192. 'PARSER_CONTROL' => array(
  193. 'KEYWORDS' => array(
  194. 3 => array(
  195. 'DISALLOWED_BEFORE' => '(?<=&amp;)'
  196. ),
  197. 4 => array(
  198. 'DISALLOWED_BEFORE' => "(?<![a-zA-Z0-9_\"\'])",
  199. 'DISALLOWED_AFTER' => "(?![a-zA-Z0-9_\"\'])"
  200. ),
  201. 6 => array(
  202. 'DISALLOWED_BEFORE' => '(?<=\$)'
  203. ),
  204. 8 => array(
  205. 'DISALLOWED_BEFORE' => '(?<=#)'
  206. )
  207. )
  208. )
  209. );
  210. ?>