SyntaxHighlighter.brushes.mirc = function()
{
	var funcs	=	'Action Active Agent AppActive auser Ban Chat Close Connect Ctcp CtcpReply DccServer DeHelp ' +
					'DeOp DeVoice Devop DeHALFOP Dns Disable Error Exit enable FileRcvd FileSent GetFail Help HALFOP Hotlink Input Invite Join ' +
					'KeyDown KeyUp Kick Load Logon MidiEnd Mode Mp3End NoSound Notice Notify Op Open Part ' +
					'Ping Pong PlayEnd Quit Raw RawMode SendFail Serv ServerMode ServerOp Signal Snotice Start Text ' +
					'Topic UnBan Uop DeUop Unload Unotify User Mode Voice VOP Wallops WaveEnd writeini DEUOP';

	var keywords =	'alias menu dialog';

	var operators =	'if else while elseif';

	this.regexList = [
		{ regex: new RegExp(';(.*)$', 'gm'),						css: 'comment' },			// one line and multiline comments
		{ regex: SyntaxHighlighter.regexLib.doubleQuotedString,					css: 'string' },			// double quoted strings
		{ regex: SyntaxHighlighter.regexLib.singleQuotedString,					css: 'string' },			// single quoted strings
		{ regex: new RegExp('\\$\\w+', 'g'),						css: 'func' },			// single quoted strings
		{ regex: new RegExp('(%|&).+?[^ ,\)]*', 'gmi'),				css: 'string' },			// single quoted strings
		{ regex: new RegExp('(#|@).+?[^ ,\)]*', 'gmi'),				css: 'string' },			// single quoted strings
		{ regex: new RegExp('-[a-z\d]+', 'gmi'),					css: 'string' },			// single quoted strings
		{ regex: new RegExp('(on|ctcp) (!|@|&):[a-zA-Z]+:', 'gmi'),	css: 'func' },			// single quoted strings
		{ regex: new RegExp('raw [\d|\*]+:', 'gmi'),					css: 'func' },			// single quoted strings
		{ regex: new RegExp(this.getKeywords(funcs), 'gmi'),		css: 'func' },				// functions
		{ regex: new RegExp(this.getKeywords(operators), 'gmi'),	css: 'op' },				// operators and such
		{ regex: new RegExp(this.getKeywords(keywords), 'gmi'),	css: 'keyword' }			// keyword
		];

	this.CssClass = 'ss-mirc';
}

SyntaxHighlighter.brushes.mirc.prototype	= new SyntaxHighlighter.Highlighter();
SyntaxHighlighter.brushes.mirc.aliases	= ['mirc'];
