dp.sh.Brushes.MacroScript = function()
{
	var keywords =	'Add AppendFile Ask Ascii Assigned ' +
					'Base64 BlockInput CapsOff CapsOn Change Directory CloseDialog CloseWindow CompareBitmaps ' +
					'ConCat CountFiles CopyFile CreateDir Crypt ' +
					'DateStamp Day DayOfWeek DeleteFile DDEPoke DDERequest Dialog ' +
					'EditIniFile End EndDialog ExecuteFile Exit ' +
					'FileDate FileSize FileTime FindImagePos FindWindowWithText FTPDelFile FTPGetDirList FTPGetFile FTPMakeDir FTPPutFile FTPRemoveDir FTPRenameFile ' +
					'GetActiveWindow GetCaretPos GetCheckBox GetCipBoard GetControlText GetCursorPos GetData GetDialogAction GetEnvVar ' +
					'GetFileList GetListItem GetPixelColor GetRectCheckSum GetScreenRes GetTextAtPoint GetTextInRect GetTime GetTreeNode ' +
					'GetWindowHandle GetWindowList GetWindowPos GetWindowProcess GetWindowText GetWindowTextEx GoSub Goto ' +
					'Hour HTTPRequest If IfFileExists IfDirExists IfFileChanged IfWindowOpen Include Input ' +
					'Label LClick LDblClick LDown Length Let LibFree LibFunc LibLoad LUp ' +
					'Macro MClick MDblClick MDown Message MessageModal MidStr Min Month MouseMove MouseMoveRel MouseOver MoveFile MoveWindow MUp ' +
					'NumOff NumOn OnEvent PlayWav Position Press PushButton PutClipBoard ' +
					'Random RClick RDblClick RDown ReadFile ReadIniFile ReadLn RegistryDelKey RegistryDelVal RegistryReadKey RegistryWriteKey Release ' + 
					'Remark RenameFile Repeat ResetDialogAction ResizeWindow RetrievePOP3 RGB Run Program Rup ' +
					'ScreenCapture ScrollOff ScrollOn Sec SelectMenu Send Separate SetCheckBox SetControlText SetDialogObjectFont SetEnvVar SetFocus Show ' +
					'ShutDownWindow SMTPSendMail SRT StringReplace Sub ' + 
					'TelnetClose TelnetConnect TelnetSend TelnetWaitFor TimeStamp Toolbar ' + 
					'Until VBEND VBEVal VBSTART VBRun ' +
					'Wait WaitClipBoard WaitCursorChanged WaitKeyDown WaitPixelColor WaitReady WaitRectChanged WaitScreenImage WaitScreenText WaitWindowChanged WaitWindowClosed WaitWindowOpen WindowAction WriteLn ' +
					'Year Endif DBConnect DBClose DBQuery DBExec RegEx';

	this.regexList = [
		{ regex: new RegExp('\'.*$', 'gm'),							css: 'comment' },			// one line comments
		{ regex: dp.sh.RegexLib.DoubleQuotedString,					css: 'string' },			// strings
		{ regex: new RegExp('^\\s*#.*', 'gm'),						css: 'preprocessor' },		// preprocessor tags like #region and #endregion
		{ regex: new RegExp(this.GetKeywords(keywords), 'gm'),		css: 'keyword' }			// c# keyword
		];

	this.CssClass = 'dp-macroscript';
}

dp.sh.Brushes.MacroScript.prototype	= new dp.sh.Highlighter();
dp.sh.Brushes.MacroScript.Aliases	= ['macroscript'];
