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.

171 lines
6.4KB

  1. <?php
  2. /*************************************************************************************
  3. * mirc.php
  4. * -----
  5. * Author: Alberto 'Birckin' de Areba (Birckin@hotmail.com)
  6. * Copyright: (c) 2006 Alberto de Areba
  7. * Release Version: 1.0.8.11
  8. * Date Started: 2006/05/29
  9. *
  10. * mIRC Scripting language file for GeSHi.
  11. *
  12. * CHANGES
  13. * -------
  14. * 2008/05/23 (1.0.7.22)
  15. * - Added description of extra language features (SF#1970248)
  16. * 2006/05/29 (1.0.0)
  17. * - First Release
  18. *
  19. *************************************************************************************
  20. *
  21. * This file is part of GeSHi.
  22. *
  23. * GeSHi is free software; you can redistribute it and/or modify
  24. * it under the terms of the GNU General Public License as published by
  25. * the Free Software Foundation; either version 2 of the License, or
  26. * (at your option) any later version.
  27. *
  28. * GeSHi is distributed in the hope that it will be useful,
  29. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  30. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  31. * GNU General Public License for more details.
  32. *
  33. * You should have received a copy of the GNU General Public License
  34. * along with GeSHi; if not, write to the Free Software
  35. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  36. *
  37. ************************************************************************************/
  38. $language_data = array (
  39. 'LANG_NAME' => 'mIRC Scripting',
  40. 'COMMENT_SINGLE' => array(1 => ';'),
  41. 'COMMENT_MULTI' => array(),
  42. 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
  43. 'QUOTEMARKS' => array(),
  44. 'ESCAPE_CHAR' => '',
  45. 'KEYWORDS' => array(
  46. 1 => array(
  47. 'alias', 'menu', 'dialog',
  48. ),
  49. 2 => array(
  50. 'if', 'elseif', 'else', 'while', 'return', 'goto', 'var'
  51. ),
  52. 3 => array(
  53. 'action','ajinvite','amsg','ame','anick','aop','auser',
  54. 'avoice','auto','autojoin','away','background','ban','beep',
  55. 'channel','clear','clearall','clipboard','close','closemsg','color',
  56. 'copy','creq','ctcp','ctcpreply','ctcps','dcc','dde','ddeserver',
  57. 'debug','describe','disable','disconnect','dlevel','dll','dns',
  58. 'dqwindow','ebeeps','echo','editbox','emailaddr','enable','events',
  59. 'exit','filter','findtext','finger','flash','flood','flush',
  60. 'flushini','font','fsend','fserve','fullname','ghide','gload',
  61. 'gmove','gopts','gplay','gpoint','gqreq','groups','gshow','gsize',
  62. 'gstop','gtalk','gunload','guser','help','hop','ignore','invite',
  63. 'join','kick','linesep','links','list','load','loadbuf','localinfo',
  64. 'log','me','mdi','mkdir','mnick','mode','msg','names','nick','noop',
  65. 'notice','notify','omsg','onotice','part','partall','pdcc',
  66. 'perform','ping','play','pop','protect','pvoice','qmsg','qme',
  67. 'query','queryrn','quit','raw','remini','remote','remove','rename',
  68. 'enwin','resetidle','rlevel','rmdir','run','ruser','save','savebuf',
  69. 'saveini','say','server','showmirc','sline','sound','speak','splay',
  70. 'sreq','strip','time',
  71. //'timer[N/name]', //Handled as a regular expression below ...
  72. 'timers','timestamp','titlebar','tnick','tokenize','topic','ulist',
  73. 'unload','updatenl','url','uwho','window','winhelp','write',
  74. 'writeini','who','whois','whowas'
  75. )
  76. ),
  77. 'SYMBOLS' => array(
  78. '(', ')', '{', '}', '[', ']', '/'
  79. ),
  80. 'CASE_SENSITIVE' => array(
  81. GESHI_COMMENTS => false,
  82. 1 => false,
  83. 2 => false,
  84. 3 => false,
  85. ),
  86. 'STYLES' => array(
  87. 'KEYWORDS' => array(
  88. 1 => 'color: #994444;',
  89. 2 => 'color: #000000; font-weight: bold;',
  90. 3 => 'color: #990000; font-weight: bold;',
  91. ),
  92. 'COMMENTS' => array(
  93. 1 => 'color: #808080; font-style: italic;',
  94. ),
  95. 'ESCAPE_CHAR' => array(
  96. ),
  97. 'BRACKETS' => array(
  98. 0 => 'color: #FF0000;',
  99. ),
  100. 'STRINGS' => array(
  101. ),
  102. 'NUMBERS' => array(
  103. 0 => '',
  104. ),
  105. 'METHODS' => array(
  106. 0 => 'color: #008000;'
  107. ),
  108. 'SYMBOLS' => array(
  109. 0 => 'color: #FF0000;',
  110. ),
  111. 'REGEXPS' => array(
  112. 0 => 'color: #000099;',
  113. 1 => 'color: #990000;',
  114. 2 => 'color: #000099;',
  115. 3 => 'color: #888800;',
  116. 4 => 'color: #888800;',
  117. 5 => 'color: #000099;',
  118. 6 => 'color: #990000; font-weight: bold;',
  119. 7 => 'color: #990000; font-weight: bold;'
  120. ),
  121. 'SCRIPT' => array(
  122. )
  123. ),
  124. 'URLS' => array(
  125. 1 => '',
  126. 2 => '',
  127. 3 => 'http://www.mirc.com/{FNAMEL}'
  128. ),
  129. 'OOLANG' => true,
  130. 'OBJECT_SPLITTERS' => array('.'),
  131. 'REGEXPS' => array(
  132. //Variable names
  133. 0 => '\$[a-zA-Z0-9]+',
  134. //Variable names
  135. 1 => '(%|&amp;)[\w\x80-\xFE]+',
  136. //Client to Client Protocol handling
  137. 2 => '(on|ctcp) (!|@|&amp;)?(\d|\*):[a-zA-Z]+:',
  138. /*4 => array(
  139. GESHI_SEARCH => '((on|ctcp) (!|@|&)?(\d|\*):(Action|Active|Agent|AppActive|Ban|Chat|Close|Connect|Ctcp|CtcpReply|DccServer|DeHelp|DeOp|DeVoice|Dialog|Dns|Error|Exit|FileRcvd|FileSent|GetFail|Help|Hotlink|Input|Invite|Join|KeyDown|KeyUp|Kick|Load|Logon|MidiEnd|Mode|Mp3End|Nick|NoSound|Notice|Notify|Op|Open|Part|Ping|Pong|PlayEnd|Quit|Raw|RawMode|SendFail|Serv|ServerMode|ServerOp|Signal|Snotice|Start|Text|Topic|UnBan|Unload|Unotify|User|Mode|Voice|Wallops|WaveEnd):)',
  140. GESHI_REPLACE => '\\1',
  141. GESHI_MODIFIERS => 'i',
  142. GESHI_BEFORE => '',
  143. GESHI_AFTER => ''
  144. ),*/
  145. //Channel names
  146. 3 => '(#|@)[a-zA-Z0-9]+',
  147. 4 => '-[a-z\d]+',
  148. //Raw protocol handling
  149. 5 => 'raw (\d|\*):',
  150. //Timer handling
  151. 6 => '(?<!>|:|\/)\/timer(?!s\b)[0-9a-zA-Z_]+',
  152. // /...
  153. 7 => '(?<!>|:|\/|\w)\/[a-zA-Z][a-zA-Z0-9]*(?!>)'
  154. ),
  155. 'STRICT_MODE_APPLIES' => GESHI_NEVER,
  156. 'SCRIPT_DELIMITERS' => array(
  157. ),
  158. 'HIGHLIGHT_STRICT_BLOCK' => array(
  159. ),
  160. 'PARSER_CONTROL' => array(
  161. 'ENABLE_FLAGS' => array(
  162. 'NUMBERS' => GESHI_NEVER
  163. ),
  164. 'KEYWORDS' => array(
  165. 'DISALLOWED_BEFORE' => '(?<![\w\$\|\#;<^&])'
  166. )
  167. )
  168. );
  169. ?>