2 /************************************************************************************* |
2 /************************************************************************************* |
3 * mirc.php |
3 * mirc.php |
4 * ----- |
4 * ----- |
5 * Author: Alberto 'Birckin' de Areba (Birckin@hotmail.com) |
5 * Author: Alberto 'Birckin' de Areba (Birckin@hotmail.com) |
6 * Copyright: (c) 2006 Alberto de Areba |
6 * Copyright: (c) 2006 Alberto de Areba |
7 * Release Version: 1.0.8.2 |
7 * Release Version: 1.0.8.4 |
8 * Date Started: 2006/05/29 |
8 * Date Started: 2006/05/29 |
9 * |
9 * |
10 * mIRC Scripting language file for GeSHi. |
10 * mIRC Scripting language file for GeSHi. |
11 * |
11 * |
12 * CHANGES |
12 * CHANGES |
46 'KEYWORDS' => array( |
46 'KEYWORDS' => array( |
47 1 => array( |
47 1 => array( |
48 'alias', 'menu', 'dialog', |
48 'alias', 'menu', 'dialog', |
49 ), |
49 ), |
50 2 => array( |
50 2 => array( |
51 'if', 'elseif', 'else', 'while', 'return', 'goto','var' |
51 'if', 'elseif', 'else', 'while', 'return', 'goto', 'var' |
52 ), |
52 ), |
53 3 => array( |
53 3 => array( |
54 'action','ajinvite','amsg','ame','anick','aop','auser', |
54 'action','ajinvite','amsg','ame','anick','aop','auser', |
55 'avoice','auto','autojoin','away','background','ban','beep', |
55 'avoice','auto','autojoin','away','background','ban','beep', |
56 'channel','clear','clearall','clipboard','close','closemsg','color', |
56 'channel','clear','clearall','clipboard','close','closemsg','color', |
74 'unload','updatenl','url','uwho','window','winhelp','write', |
74 'unload','updatenl','url','uwho','window','winhelp','write', |
75 'writeini','who','whois','whowas' |
75 'writeini','who','whois','whowas' |
76 ) |
76 ) |
77 ), |
77 ), |
78 'SYMBOLS' => array( |
78 'SYMBOLS' => array( |
79 '(', ')', '{', '}', '[', ']' |
79 '(', ')', '{', '}', '[', ']', '/' |
80 ), |
80 ), |
81 'CASE_SENSITIVE' => array( |
81 'CASE_SENSITIVE' => array( |
82 GESHI_COMMENTS => false, |
82 GESHI_COMMENTS => false, |
83 1 => false, |
83 1 => false, |
84 2 => false, |
84 2 => false, |
131 'OBJECT_SPLITTERS' => array('.'), |
131 'OBJECT_SPLITTERS' => array('.'), |
132 'REGEXPS' => array( |
132 'REGEXPS' => array( |
133 //Variable names |
133 //Variable names |
134 0 => '\$[a-zA-Z0-9]+', |
134 0 => '\$[a-zA-Z0-9]+', |
135 //Variable names |
135 //Variable names |
136 1 => '(%|&)[a-zA-Z0-9äöü]+', |
136 1 => '(%|&)[\w\x80-\xFE]+', |
137 //Client to Client Protocol handling |
137 //Client to Client Protocol handling |
138 2 => '(on|ctcp) (!|@|&)?(\d|\*):[a-zA-Z]+:', |
138 2 => '(on|ctcp) (!|@|&)?(\d|\*):[a-zA-Z]+:', |
139 /*4 => array( |
139 /*4 => array( |
140 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_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):)', |
141 GESHI_REPLACE => '\\1', |
141 GESHI_REPLACE => '\\1', |
147 3 => '(#|@)[a-zA-Z0-9]+', |
147 3 => '(#|@)[a-zA-Z0-9]+', |
148 4 => '-[a-z\d]+', |
148 4 => '-[a-z\d]+', |
149 //Raw protocol handling |
149 //Raw protocol handling |
150 5 => 'raw (\d|\*):', |
150 5 => 'raw (\d|\*):', |
151 //Timer handling |
151 //Timer handling |
152 6 => '\/timer(?!s\b)[0-9a-zA-Z_]+', |
152 6 => '(?<!>|:|\/)\/timer(?!s\b)[0-9a-zA-Z_]+', |
153 // /... |
153 // /... |
154 7 => '\/[a-zA-Z0-9]+' |
154 7 => '(?<!>|:|\/|\w)\/[a-zA-Z][a-zA-Z0-9]*(?!>)' |
155 ), |
155 ), |
156 'STRICT_MODE_APPLIES' => GESHI_NEVER, |
156 'STRICT_MODE_APPLIES' => GESHI_NEVER, |
157 'SCRIPT_DELIMITERS' => array( |
157 'SCRIPT_DELIMITERS' => array( |
158 ), |
158 ), |
159 'HIGHLIGHT_STRICT_BLOCK' => array( |
159 'HIGHLIGHT_STRICT_BLOCK' => array( |