0
|
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.7.20
|
|
8 |
* Date Started: 2006/05/29
|
|
9 |
*
|
|
10 |
* mIRC Scripting language file for GeSHi.
|
|
11 |
*
|
|
12 |
* CHANGES
|
|
13 |
* -------
|
|
14 |
* 2006/05/29 (1.0.0)
|
|
15 |
* - First Release
|
|
16 |
*
|
|
17 |
*************************************************************************************
|
|
18 |
*
|
|
19 |
* This file is part of GeSHi.
|
|
20 |
*
|
|
21 |
* GeSHi is free software; you can redistribute it and/or modify
|
|
22 |
* it under the terms of the GNU General Public License as published by
|
|
23 |
* the Free Software Foundation; either version 2 of the License, or
|
|
24 |
* (at your option) any later version.
|
|
25 |
*
|
|
26 |
* GeSHi is distributed in the hope that it will be useful,
|
|
27 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
28 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
29 |
* GNU General Public License for more details.
|
|
30 |
*
|
|
31 |
* You should have received a copy of the GNU General Public License
|
|
32 |
* along with GeSHi; if not, write to the Free Software
|
|
33 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
34 |
*
|
|
35 |
************************************************************************************/
|
|
36 |
|
|
37 |
$language_data = array (
|
|
38 |
'LANG_NAME' => 'mIRC Scripting',
|
|
39 |
'COMMENT_SINGLE' => array(1 => ';'),
|
|
40 |
'COMMENT_MULTI' => array(),
|
|
41 |
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
|
|
42 |
'QUOTEMARKS' => array(),
|
|
43 |
'ESCAPE_CHAR' => '',
|
|
44 |
'KEYWORDS' => array(
|
|
45 |
1 => array(
|
|
46 |
'alias', 'menu', 'dialog',
|
|
47 |
),
|
|
48 |
2 => array(
|
|
49 |
'if', 'elseif', 'else', 'while', 'return', 'goto',
|
|
50 |
),
|
|
51 |
3 => array(
|
|
52 |
'/action','/ajinvite','/alias','/amsg','/ame','/anick','/aop',
|
|
53 |
'/auser','/avoice','/auto','/autojoin','/away','/background','/ban',
|
|
54 |
'/beep','/channel','/clear','/clearall','/clipboard','/close',
|
|
55 |
'/closemsg','/color','/copy','/creq','/ctcp','/ctcpreply','/ctcps',
|
|
56 |
'/dcc','/dde','/ddeserver','/debug','/describe','/disable',
|
|
57 |
'/disconnect','/dlevel','/dll','/dns','/dqwindow','/ebeeps','/echo',
|
|
58 |
'/editbox','/emailaddr','/enable','/events','/exit','/filter',
|
|
59 |
'/findtext','/finger','/flash','/flood','/flush','/flushini',
|
|
60 |
'/font','/fsend','/fserve','/fullname','/ghide','/gload','/gmove',
|
|
61 |
'/gopts','/gplay','/gpoint','/gqreq','/groups','/gshow','/gsize',
|
|
62 |
'/gstop','/gtalk','/gunload','/guser','/help','/hop','/ignore',
|
|
63 |
'/invite','/join','/kick','/linesep','/links','/list','/load',
|
|
64 |
'/loadbuf','/localinfo','/log','/me','/mdi','/mkdir','/mnick',
|
|
65 |
'/mode','/msg','/names','/nick','/noop','/notice','/notify',
|
|
66 |
'/omsg','/onotice','/part','/partall','/pdcc','/perform','/ping',
|
|
67 |
'/play','/pop','/protect','/pvoice','/qmsg','/qme','/query',
|
|
68 |
'/queryrn','/quit','/raw','/remini','/remote','/remove','/rename',
|
|
69 |
'renwin','/resetidle','/rlevel','/rmdir','/run','/ruser','/save',
|
|
70 |
'/savebuf','/save','/saveini','/say','/server','/showmirc','/sline',
|
|
71 |
'/sound','/speak','/splay','/sreq','/strip','/time',
|
|
72 |
//'/timer[N/name]', //Handled as a regular expression below ...
|
|
73 |
'/timers','/timestamp','/titlebar','/tnick','/tokenize','/topic',
|
|
74 |
'/ulist','/unload','/updatenl','/url','/uwho','window','/winhelp',
|
|
75 |
'/write','/writeini','/who','/whois','/whowas'
|
|
76 |
)
|
|
77 |
),
|
|
78 |
'SYMBOLS' => array(
|
|
79 |
'(', ')', '{', '}', '[', ']', '|',
|
|
80 |
),
|
|
81 |
'CASE_SENSITIVE' => array(
|
|
82 |
GESHI_COMMENTS => true,
|
|
83 |
1 => false,
|
|
84 |
2 => 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 |
),
|
|
107 |
'SYMBOLS' => array(
|
|
108 |
0 => 'color: #FF0000;',
|
|
109 |
),
|
|
110 |
'REGEXPS' => array(
|
|
111 |
0 => 'color: #000099;',
|
|
112 |
1 => 'color: #990000;',
|
|
113 |
2 => 'color: #888800;',
|
|
114 |
3 => 'color: #888800;',
|
|
115 |
4 => 'color: #000099;',
|
|
116 |
5 => 'color: #000099;',
|
|
117 |
6 => 'color: #990000; font-weight: bold;',
|
|
118 |
),
|
|
119 |
'SCRIPT' => array(
|
|
120 |
)
|
|
121 |
),
|
|
122 |
'URLS' => array(
|
|
123 |
1 => '',
|
|
124 |
2 => '',
|
|
125 |
3 => 'http://www.mirc.com/{FNAME}',
|
|
126 |
4 => ''
|
|
127 |
),
|
|
128 |
'OOLANG' => false,
|
|
129 |
'OBJECT_SPLITTERS' => array(
|
|
130 |
),
|
|
131 |
'REGEXPS' => array(
|
|
132 |
0 => '\$[^$][^ ,\(\)]*',
|
|
133 |
1 => '(%|&).+?[^ ,\)]*',
|
|
134 |
2 => '(#|@).+?[^ ,\)]*',
|
|
135 |
3 => '-[a-z\d]+',
|
|
136 |
4 => '(on|ctcp) (!|@|&)?(\d|\*):[a-zA-Z]+:',
|
|
137 |
/*4 => array(
|
|
138 |
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):)',
|
|
139 |
GESHI_REPLACE => '\\1',
|
|
140 |
GESHI_MODIFIERS => 'i',
|
|
141 |
GESHI_BEFORE => '',
|
|
142 |
GESHI_AFTER => ''
|
|
143 |
),*/
|
|
144 |
5 => 'raw (\d|\*):',
|
|
145 |
6 => '\/timer(?!s\b)[0-9a-zA-Z_]+',
|
|
146 |
),
|
|
147 |
'STRICT_MODE_APPLIES' => GESHI_NEVER,
|
|
148 |
'SCRIPT_DELIMITERS' => array(
|
|
149 |
),
|
|
150 |
'HIGHLIGHT_STRICT_BLOCK' => array(
|
|
151 |
)
|
|
152 |
);
|
|
153 |
|
|
154 |
?>
|