autoit.vim (48046B)
1 " Vim syntax file 2 " 3 " Language: AutoIt v3 (http://www.autoitscript.com/autoit3/) 4 " Maintainer: Jared Breland <jbreland@legroom.net> 5 " Authored By: Riccardo Casini <ric@libero.it> 6 " Script URL: http://www.vim.org/scripts/script.php?script_id=1239 7 " ChangeLog: Please visit the script URL for detailed change information 8 " Included change from #970. 9 10 " Quit when a syntax file was already loaded. 11 if exists("b:current_syntax") 12 finish 13 endif 14 let s:keepcpo= &cpo 15 set cpo&vim 16 17 let b:current_syntax = "autoit" 18 19 " AutoIt is not case dependent 20 syn case ignore 21 22 " Definitions for AutoIt reserved keywords 23 syn keyword autoitKeyword Default False True 24 syn keyword autoitKeyword Const Dim Global Local ReDim 25 syn keyword autoitKeyword If Else ElseIf Then EndIf 26 syn keyword autoitKeyword Select Switch Case EndSelect EndSwitch 27 syn keyword autoitKeyword Enum For In To Step Next 28 syn keyword autoitKeyword With While EndWith Wend Do Until 29 syn keyword autoitKeyword ContinueCase ContinueLoop ExitLoop Exit 30 31 " inside script inclusion and global options 32 syn match autoitIncluded display contained "<[^>]*>" 33 syn match autoitInclude display "^\s*#\s*include\>\s*["<]" 34 \ contains=autoitIncluded,autoitString 35 syn match autoitInclude "^\s*#include-once\>" 36 syn match autoitInclude "^\s*#NoTrayIcon\>" 37 syn match autoitInclude "^\s*#RequireAdmin\>" 38 39 " user-defined functions 40 syn keyword autoitKeyword Func ByRef EndFunc Return OnAutoItStart OnAutoItExit 41 42 " built-in functions 43 " environment management 44 syn keyword autoitFunction ClipGet ClipPut EnvGet EnvSet EnvUpdate MemGetStats 45 " file, directory, and disk management 46 syn keyword autoitFunction ConsoleRead ConsoleWrite ConsoleWriteError 47 syn keyword autoitFunction DirCopy DirCreate DirGetSize DirMove DirRemove 48 syn keyword autoitFunction DriveGetDrive DriveGetFileSystem DriveGetLabel 49 \ DriveGetSerial DriveGetType DriveMapAdd DriveMapDel DriveMapGet 50 \ DriveSetLabel DriveSpaceFree DriveSpaceTotal DriveStatus 51 syn keyword autoitFunction FileChangeDir FileClose FileCopy FileCreateNTFSLink 52 \ FileCreateShortcut FileDelete FileExists FileFindFirstFile 53 \ FileFindNextFile FileGetAttrib FileGetLongName FileGetShortcut 54 \ FileGetShortName FileGetSize FileGetTime FileGetVersion FileInstall 55 \ FileMove FileOpen FileOpenDialog FileRead FileReadLine FileRecycle 56 \ FileRecycleEmpty FileSaveDialog FileSelectFolder FileSetAttrib 57 \ FileSetTime FileWrite FileWriteLine 58 syn keyword autoitFunction IniDelete IniRead IniReadSection IniReadSectionNames 59 \ IniRenameSection IniWrite IniWriteSection 60 syn keyword autoitFunction StderrRead StdinWrite StdoutRead 61 " graphic and sound 62 syn keyword autoitFunction Beep PixelChecksum PixelGetColor PixelSearch 63 \ SoundPlay SoundSetWaveVolume 64 " gui reference 65 syn keyword autoitFunction GUICreate GUIDelete GUICtrlGetHandle GUICtrlGetState 66 \ GUICtrlRead GUICtrlRecvMsg GUICtrlSendMsg GUICtrlSendToDummy 67 \ GUIGetCursorInfo GUIGetMsg GUIRegisterMsg GUIStartGroup GUISwitch 68 syn keyword autoitFunction GUICtrlCreateAvi GUICtrlCreateButton 69 \ GUICtrlCreateCheckbox GUICtrlCreateCombo GUICtrlCreateContextMenu 70 \ GUICtrlCreateDate GUICtrlCreateDummy GUICtrlCreateEdit 71 \ GUICtrlCreateGraphic GUICtrlCreateGroup GUICtrlCreateIcon 72 \ GUICtrlCreateInput GUICtrlCreateLabel GUICtrlCreateList 73 \ GUICtrlCreateListView GUICtrlCreateListViewItem GUICtrlCreateMenu 74 \ GUICtrlCreateMenuItem GUICtrlCreateMonthCal GUICtrlCreateObj 75 \ GUICtrlCreatePic GUICtrlCreateProgress GUICtrlCreateRadio 76 \ GUICtrlCreateSlider GUICtrlCreateTab GUICtrlCreateTabItem 77 \ GUICtrlCreateTreeView GUICtrlCreateTreeViewItem 78 \ GUICtrlCreateUpDown GUICtrlDelete 79 syn keyword autoitFunction GUICtrlRegisterListViewSort GUICtrlSetBkColor 80 \ GUICtrlSetColor GUICtrlSetCursor GUICtrlSetData GUICtrlSetFont 81 \ GUICtrlSetGraphic GUICtrlSetImage GUICtrlSetLimit GUICtrlSetOnEvent 82 \ GUICtrlSetPos GUICtrlSetResizing GUICtrlSetState GUICtrlSetStyle 83 \ GUICtrlSetTip 84 syn keyword autoitFunction GUISetBkColor GUISetCoord GUISetCursor GUISetFont 85 \ GUISetHelp GUISetIcon GUISetOnEvent GUISetState 86 " keyboard control 87 syn keyword autoitFunction HotKeySet Send 88 " math 89 syn keyword autoitFunction Abs ACos ASin ATan BitAND BitNOT BitOR BitRotate 90 \ BitShift BitXOR Cos Ceiling Exp Floor Log Mod Random Round Sin Sqrt 91 \ SRandom Tan 92 " message boxes and dialogs 93 syn keyword autoitFunction InputBox MsgBox ProgressOff ProgressOn ProgressSet 94 \ SplashImageOn SplashOff SplashTextOn ToolTip 95 " miscellaneous 96 syn keyword autoitFunction AdlibDisable AdlibEnable AutoItSetOption 97 \ AutoItWinGetTitle AutoItWinSetTitle BlockInput Break Call CDTray 98 \ Execute Opt SetError SetExtended 99 " mouse control 100 syn keyword autoitFunction MouseClick MouseClickDrag MouseDown MouseGetCursor 101 \ MouseGetPos MouseMove MouseUp MouseWheel 102 " network 103 syn keyword autoitFunction FtpSetProxy HttpSetProxy InetGet InetGetSize Ping 104 \ TCPAccept TCPCloseSocket TCPConnect TCPListen TCPNameToIp TCPRecv 105 \ TCPSend TCPShutDown TCPStartup UDPBind UDPCloseSocket UDPOpen UDPRecv 106 \ UDPSend UDPShutdown UDPStartup 107 " obj/com reference 108 syn keyword autoitFunction ObjCreate ObjEvent ObjGet ObjName 109 " process management 110 syn keyword autoitFunction DllCall DllClose DllOpen DllStructCreate 111 \ DllStructGetData DllStructGetPtr DllStructGetSize DllStructSetData 112 \ ProcessClose ProcessExists ProcessSetPriority ProcessList ProcessWait 113 \ ProcessWaitClose Run RunAsSet RunWait ShellExecute ShellExecuteWait 114 \ Shutdown 115 " removed from 3.2.0 docs - PluginClose PluginOpen 116 " registry management 117 syn keyword autoitFunction RegDelete RegEnumKey RegEnumVal RegRead RegWrite 118 " string management 119 syn keyword autoitFunction StringAddCR StringFormat StringInStr StringIsAlNum 120 \ StringIsAlpha StringIsASCII StringIsDigit StringIsFloat StringIsInt 121 \ StringIsLower StringIsSpace StringIsUpper StringIsXDigit StringLeft 122 \ StringLen StringLower StringMid StringRegExp StringRegExpReplace 123 \ StringReplace StringRight StringSplit StringStripCR StringStripWS 124 \ StringTrimLeft StringTrimRight StringUpper 125 " timer and delay 126 syn keyword autoitFunction Sleep TimerInit TimerDiff 127 " tray 128 syn keyword autoitFunction TrayCreateItem TrayCreateMenu TrayItemDelete 129 \ TrayItemGetHandle TrayItemGetState TrayItemGetText TrayItemSetOnEvent 130 \ TrayItemSetState TrayItemSetText TrayGetMsg TraySetClick TraySetIcon 131 \ TraySetOnEvent TraySetPauseIcon TraySetState TraySetToolTip TrayTip 132 " variables and conversions 133 syn keyword autoitFunction Asc Assign Binary Chr Dec Eval Hex HWnd Int IsAdmin 134 \ IsArray IsBinaryString IsBool IsDeclared IsDllStruct IsFloat IsHWnd 135 \ IsInt IsKeyword IsNumber IsObj IsString Number String UBound 136 " window management 137 syn keyword autoitFunction WinActivate WinActive WinClose WinExists WinFlash 138 \ WinGetCaretPos WinGetClassList WinGetClientSize WinGetHandle WinGetPos 139 \ WinGetProcess WinGetState WinGetText WinGetTitle WinKill WinList 140 \ WinMenuSelectItem WinMinimizeAll WinMinimizeAllUndo WinMove 141 \ WinSetOnTop WinSetState WinSetTitle WinSetTrans WinWait WinWaitActive 142 \ WinWaitClose WinWaitNotActive 143 syn keyword autoitFunction ControlClick ControlCommand ControlDisable 144 \ ControlEnable ControlFocus ControlGetFocus ControlGetHandle 145 \ ControlGetPos ControlGetText ControlHide ControlListView ControlMove 146 \ ControlSend ControlSetText ControlShow StatusBarGetText 147 148 " user defined functions 149 " array 150 syn keyword autoitFunction _ArrayAdd _ArrayBinarySearch _ArrayCreate 151 \ _ArrayDelete _ArrayDisplay _ArrayInsert _ArrayMax _ArrayMaxIndex 152 \ _ArrayMin _ArrayMinIndex _ArrayPop _ArrayPush _ArrayReverse 153 \ _ArraySearch _ArraySort _ArraySwap _ArrayToClip _ArrayToString 154 \ _ArrayTrim 155 " color 156 syn keyword autoitFunction _ColorgetBlue _ColorGetGreen _ColorGetRed 157 " date 158 syn keyword autoitFunction _DateAdd _DateDayOfWeek _DateDaysInMonth _DateDiff 159 \ _DateIsLeapYear _DateIsValid _DateTimeFormat _DateTimeSplit 160 \ _DateToDayOfWeek _ToDayOfWeekISO _DateToDayValue _DayValueToDate _Now 161 \ _NowCalc _NowCalcDate _NowDate _NowTime _SetDate _SetTime _TicksToTime 162 \ _TimeToTicks _WeekNumberISO 163 " file 164 syn keyword autoitFunction _FileCountLines _FileCreate _FileListToArray 165 \ _FilePrint _FileReadToArray _FileWriteFromArray _FileWriteLog 166 \ _FileWriteToLine _PathFull _PathMake _PathSplit _ReplaceStringInFile 167 \ _TempFile 168 " guicombo 169 syn keyword autoitFunction _GUICtrlComboAddDir _GUICtrlComboAddString 170 \ _GUICtrlComboAutoComplete _GUICtrlComboDeleteString 171 \ _GUICtrlComboFindString _GUICtrlComboGetCount _GUICtrlComboGetCurSel 172 \ _GUICtrlComboGetDroppedControlRect _GUICtrlComboGetDroppedState 173 \ _GUICtrlComboGetDroppedWidth _GUICtrlComboGetEditSel 174 \ _GUICtrlComboGetExtendedUI _GUICtrlComboGetHorizontalExtent 175 \ _GUICtrlComboGetItemHeight _GUICtrlComboGetLBText 176 \ _GUICtrlComboGetLBTextLen _GUICtrlComboGetList _GUICtrlComboGetLocale 177 \ _GUICtrlComboGetMinVisible _GUICtrlComboGetTopIndex 178 \ _GUICtrlComboInitStorage _GUICtrlComboInsertString 179 \ _GUICtrlComboLimitText _GUICtrlComboResetContent 180 \ _GUICtrlComboSelectString _GUICtrlComboSetCurSel 181 \ _GUICtrlComboSetDroppedWidth _GUICtrlComboSetEditSel 182 \ _GUICtrlComboSetExtendedUI _GUICtrlComboSetHorizontalExtent 183 \ _GUICtrlComboSetItemHeight _GUICtrlComboSetMinVisible 184 \ _GUICtrlComboSetTopIndex _GUICtrlComboShowDropDown 185 " guiedit 186 syn keyword autoitFunction _GUICtrlEditCanUndo _GUICtrlEditEmptyUndoBuffer 187 \ _GuiCtrlEditFind _GUICtrlEditGetFirstVisibleLine _GUICtrlEditGetLine 188 \ _GUICtrlEditGetLineCount _GUICtrlEditGetModify _GUICtrlEditGetRect 189 \ _GUICtrlEditGetSel _GUICtrlEditLineFromChar _GUICtrlEditLineIndex 190 \ _GUICtrlEditLineLength _GUICtrlEditLineScroll _GUICtrlEditReplaceSel 191 \ _GUICtrlEditScroll _GUICtrlEditSetModify _GUICtrlEditSetRect 192 \ _GUICtrlEditSetSel _GUICtrlEditUndo 193 " guiipaddress 194 syn keyword autoitFunction _GUICtrlIpAddressClear _GUICtrlIpAddressCreate 195 \ _GUICtrlIpAddressDelete _GUICtrlIpAddressGet _GUICtrlIpAddressIsBlank 196 \ _GUICtrlIpAddressSet _GUICtrlIpAddressSetFocus 197 \ _GUICtrlIpAddressSetFont 198 \ _GUICtrlIpAddressSetRange _GUICtrlIpAddressShowHide 199 " guilist 200 syn keyword autoitFunction _GUICtrlListAddDir _GUICtrlListAddItem 201 \ _GUICtrlListClear 202 \ _GUICtrlListCount _GUICtrlListDeleteItem _GUICtrlListFindString 203 \ _GUICtrlListGetAnchorIndex _GUICtrlListGetCaretIndex 204 \ _GUICtrlListGetHorizontalExtent _GUICtrlListGetInfo 205 \ _GUICtrlListGetItemRect _GUICtrlListGetLocale _GUICtrlListGetSelCount 206 \ _GUICtrlListGetSelItems _GUICtrlListGetSelItemsText 207 \ _GUICtrlListGetSelState _GUICtrlListGetText _GUICtrlListGetTextLen 208 \ _GUICtrlListGetTopIndex _GUICtrlListInsertItem 209 \ _GUICtrlListReplaceString _GUICtrlListSelectedIndex 210 \ _GUICtrlListSelectIndex _GUICtrlListSelectString 211 \ _GUICtrlListSelItemRange _GUICtrlListSelItemRangeEx 212 \ _GUICtrlListSetAnchorIndex _GUICtrlListSetCaretIndex 213 \ _GUICtrlListSetHorizontalExtent _GUICtrlListSetLocale 214 \ _GUICtrlListSetSel _GUICtrlListSetTopIndex _GUICtrlListSort 215 \ _GUICtrlListSwapString 216 " guilistview 217 syn keyword autoitFunction _GUICtrlListViewCopyItems 218 \ _GUICtrlListViewDeleteAllItems _GUICtrlListViewDeleteColumn 219 \ _GUICtrlListViewDeleteItem _GUICtrlListViewDeleteItemsSelected 220 \ _GUICtrlListViewEnsureVisible _GUICtrlListViewFindItem 221 \ _GUICtrlListViewGetBackColor _GUICtrlListViewGetCallBackMask 222 \ _GUICtrlListViewGetCheckedState _GUICtrlListViewGetColumnOrder 223 \ _GUICtrlListViewGetColumnWidth _GUICtrlListViewGetCounterPage 224 \ _GUICtrlListViewGetCurSel _GUICtrlListViewGetExtendedListViewStyle 225 \ _GUICtrlListViewGetHeader _GUICtrlListViewGetHotCursor 226 \ _GUICtrlListViewGetHotItem _GUICtrlListViewGetHoverTime 227 \ _GUICtrlListViewGetItemCount _GUICtrlListViewGetItemText 228 \ _GUICtrlListViewGetItemTextArray _GUICtrlListViewGetNextItem 229 \ _GUICtrlListViewGetSelectedCount _GUICtrlListViewGetSelectedIndices 230 \ _GUICtrlListViewGetSubItemsCount _GUICtrlListViewGetTopIndex 231 \ _GUICtrlListViewGetUnicodeFormat _GUICtrlListViewHideColumn 232 \ _GUICtrlListViewInsertColumn _GUICtrlListViewInsertItem 233 \ _GUICtrlListViewJustifyColumn _GUICtrlListViewScroll 234 \ _GUICtrlListViewSetCheckState _GUICtrlListViewSetColumnHeaderText 235 \ _GUICtrlListViewSetColumnOrder _GUICtrlListViewSetColumnWidth 236 \ _GUICtrlListViewSetHotItem _GUICtrlListViewSetHoverTime 237 \ _GUICtrlListViewSetItemCount _GUICtrlListViewSetItemSelState 238 \ _GUICtrlListViewSetItemText _GUICtrlListViewSort 239 " guimonthcal 240 syn keyword autoitFunction _GUICtrlMonthCalGet1stDOW _GUICtrlMonthCalGetColor 241 \ _GUICtrlMonthCalGetDelta _GUICtrlMonthCalGetMaxSelCount 242 \ _GUICtrlMonthCalGetMaxTodayWidth _GUICtrlMonthCalGetMinReqRect 243 \ _GUICtrlMonthCalSet1stDOW _GUICtrlMonthCalSetColor 244 \ _GUICtrlMonthCalSetDelta _GUICtrlMonthCalSetMaxSelCount 245 " guislider 246 syn keyword autoitFunction _GUICtrlSliderClearTics _GUICtrlSliderGetLineSize 247 \ _GUICtrlSliderGetNumTics _GUICtrlSliderGetPageSize 248 \ _GUICtrlSliderGetPos _GUICtrlSliderGetRangeMax 249 \ _GUICtrlSliderGetRangeMin _GUICtrlSliderSetLineSize 250 \ _GUICtrlSliderSetPageSize _GUICtrlSliderSetPos 251 \ _GUICtrlSliderSetTicFreq 252 " guistatusbar 253 syn keyword autoitFunction _GuiCtrlStatusBarCreate 254 \ _GUICtrlStatusBarCreateProgress _GUICtrlStatusBarDelete 255 \ _GuiCtrlStatusBarGetBorders _GuiCtrlStatusBarGetIcon 256 \ _GuiCtrlStatusBarGetParts _GuiCtrlStatusBarGetRect 257 \ _GuiCtrlStatusBarGetText _GuiCtrlStatusBarGetTextLength 258 \ _GuiCtrlStatusBarGetTip _GuiCtrlStatusBarGetUnicode 259 \ _GUICtrlStatusBarIsSimple _GuiCtrlStatusBarResize 260 \ _GuiCtrlStatusBarSetBKColor _GuiCtrlStatusBarSetIcon 261 \ _GuiCtrlStatusBarSetMinHeight _GUICtrlStatusBarSetParts 262 \ _GuiCtrlStatusBarSetSimple _GuiCtrlStatusBarSetText 263 \ _GuiCtrlStatusBarSetTip _GuiCtrlStatusBarSetUnicode 264 \ _GUICtrlStatusBarShowHide 265 " guitab 266 syn keyword autoitFunction _GUICtrlTabDeleteAllItems _GUICtrlTabDeleteItem 267 \ _GUICtrlTabDeselectAll _GUICtrlTabGetCurFocus _GUICtrlTabGetCurSel 268 \ _GUICtrlTabGetExtendedStyle _GUICtrlTabGetItemCount 269 \ _GUICtrlTabGetItemRect _GUICtrlTabGetRowCount 270 \ _GUICtrlTabGetUnicodeFormat _GUICtrlTabHighlightItem 271 \ _GUICtrlTabSetCurFocus _GUICtrlTabSetCurSel 272 \ _GUICtrlTabSetMinTabWidth _GUICtrlTabSetUnicodeFormat 273 " guitreeview 274 syn keyword autoitFunction _GUICtrlTreeViewDeleteAllItems 275 \ _GUICtrlTreeViewDeleteItem _GUICtrlTreeViewExpand 276 \ _GUICtrlTreeViewGetBkColor _GUICtrlTreeViewGetCount 277 \ _GUICtrlTreeViewGetIndent _GUICtrlTreeViewGetLineColor 278 \ _GUICtrlTreeViewGetParentHandle _GUICtrlTreeViewGetParentID 279 \ _GUICtrlTreeViewGetState _GUICtrlTreeViewGetText 280 \ _GUICtrlTreeViewGetTextColor _GUICtrlTreeViewItemGetTree 281 \ _GUICtrlTreeViewInsertItem _GUICtrlTreeViewSetBkColor 282 \ _GUICtrlTreeViewSetIcon _GUICtrlTreeViewSetIndent 283 \ _GUICtrlTreeViewSetLineColor GUICtrlTreeViewSetState 284 \ _GUICtrlTreeViewSetText _GUICtrlTreeViewSetTextColor 285 \ _GUICtrlTreeViewSort 286 " ie 287 syn keyword autoitFunction _IE_Example _IE_Introduction _IE_VersionInfo 288 \ _IEAction _IEAttach _IEBodyReadHTML _IEBodyReadText _IEBodyWriteHTML 289 \ _IECreate _IECreateEmbedded _IEDocGetObj _IEDocInsertHTML 290 \ _IEDocInsertText _IEDocReadHTML _IEDocWriteHTML 291 \ _IEErrorHandlerDeRegister _IEErrorHandlerRegister _IEErrorNotify 292 \ _IEFormElementCheckboxSelect _IEFormElementGetCollection 293 \ _IEFormElementGetObjByName _IEFormElementGetValue 294 \ _IEFormElementOptionSelect _IEFormElementRadioSelect 295 \ _IEFormElementSetValue _IEFormGetCollection _IEFormGetObjByName 296 \ _IEFormImageClick _IEFormReset _IEFormSubmit _IEFrameGetCollection 297 \ _IEFrameGetObjByName _IEGetObjByName _IEHeadInsertEventScript 298 \ _IEImgClick _IEImgGetCollection _IEIsFrameSet _IELinkClickByIndex 299 \ _IELinkClickByText _IELinkGetCollection _IELoadWait _IELoadWaitTimeout 300 \ _IENavigate _IEPropertyGet _IEPropertySet _IEQuit 301 \ _IETableGetCollection _IETableWriteToArray _IETagNameAllGetCollection 302 \ _IETagNameGetCollection 303 " inet 304 syn keyword autoitFunction _GetIP _INetExplorerCapable _INetGetSource _INetMail 305 \ _INetSmtpMail _TCPIpToName 306 " math 307 syn keyword autoitFunction _Degree _MathCheckDiv _Max _Min _Radian 308 " miscellaneous 309 syn keyword autoitFunction _ChooseColor _ChooseFont _ClipPutFile _Iif 310 \ _IsPressed _MouseTrap _SendMessage _Singleton 311 " process 312 syn keyword autoitFunction _ProcessGetName _ProcessGetPriority _RunDOS 313 " sound 314 syn keyword autoitFunction _SoundClose _SoundLength _SoundOpen _SoundPause 315 \ _SoundPlay _SoundPos _SoundResume _SoundSeek _SoundStatus _SoundStop 316 " sqlite 317 syn keyword autoitFunction _SQLite_Changes _SQLite_Close 318 \ _SQLite_Display2DResult _SQLite_Encode _SQLite_ErrCode _SQLite_ErrMsg 319 \ _SQLite_Escape _SQLite_Exec _SQLite_FetchData _SQLite_FetchNames 320 \ _SQLite_GetTable _SQLite_GetTable2D _SQLite_LastInsertRowID 321 \ _SQLite_LibVersion _SQLite_Open _SQLite_Query _SQLite_QueryFinalize 322 \ _SQLite_QueryReset _SQLite_QuerySingleRow _SQLite_SaveMode 323 \ _SQLite_SetTimeout _SQLite_Shutdown _SQLite_SQLiteExe _SQLite_Startup 324 \ _SQLite_TotalChanges 325 " string 326 syn keyword autoitFunction _HexToString _StringAddComma _StringBetween 327 \ _StringEncrypt _StringInsert _StringProper _StringRepeat 328 \ _StringReverse _StringToHex 329 " visa 330 syn keyword autoitFunction _viClose _viExecCommand _viFindGpib _viGpibBusReset 331 \ _viGTL _viOpen _viSetAttribute _viSetTimeout 332 333 " read-only macros 334 syn match autoitBuiltin "@AppData\(Common\)\=Dir" 335 syn match autoitBuiltin "@AutoItExe" 336 syn match autoitBuiltin "@AutoItPID" 337 syn match autoitBuiltin "@AutoItVersion" 338 syn match autoitBuiltin "@COM_EventObj" 339 syn match autoitBuiltin "@CommonFilesDir" 340 syn match autoitBuiltin "@Compiled" 341 syn match autoitBuiltin "@ComputerName" 342 syn match autoitBuiltin "@ComSpec" 343 syn match autoitBuiltin "@CR\(LF\)\=" 344 syn match autoitBuiltin "@Desktop\(Common\)\=Dir" 345 syn match autoitBuiltin "@DesktopDepth" 346 syn match autoitBuiltin "@DesktopHeight" 347 syn match autoitBuiltin "@DesktopRefresh" 348 syn match autoitBuiltin "@DesktopWidth" 349 syn match autoitBuiltin "@DocumentsCommonDir" 350 syn match autoitBuiltin "@Error" 351 syn match autoitBuiltin "@ExitCode" 352 syn match autoitBuiltin "@ExitMethod" 353 syn match autoitBuiltin "@Extended" 354 syn match autoitBuiltin "@Favorites\(Common\)\=Dir" 355 syn match autoitBuiltin "@GUI_CtrlId" 356 syn match autoitBuiltin "@GUI_CtrlHandle" 357 syn match autoitBuiltin "@GUI_DragId" 358 syn match autoitBuiltin "@GUI_DragFile" 359 syn match autoitBuiltin "@GUI_DropId" 360 syn match autoitBuiltin "@GUI_WinHandle" 361 syn match autoitBuiltin "@HomeDrive" 362 syn match autoitBuiltin "@HomePath" 363 syn match autoitBuiltin "@HomeShare" 364 syn match autoitBuiltin "@HOUR" 365 syn match autoitBuiltin "@HotKeyPressed" 366 syn match autoitBuiltin "@InetGetActive" 367 syn match autoitBuiltin "@InetGetBytesRead" 368 syn match autoitBuiltin "@IPAddress[1234]" 369 syn match autoitBuiltin "@KBLayout" 370 syn match autoitBuiltin "@LF" 371 syn match autoitBuiltin "@Logon\(DNS\)\=Domain" 372 syn match autoitBuiltin "@LogonServer" 373 syn match autoitBuiltin "@MDAY" 374 syn match autoitBuiltin "@MIN" 375 syn match autoitBuiltin "@MON" 376 syn match autoitBuiltin "@MyDocumentsDir" 377 syn match autoitBuiltin "@NumParams" 378 syn match autoitBuiltin "@OSBuild" 379 syn match autoitBuiltin "@OSLang" 380 syn match autoitBuiltin "@OSServicePack" 381 syn match autoitBuiltin "@OSTYPE" 382 syn match autoitBuiltin "@OSVersion" 383 syn match autoitBuiltin "@ProcessorArch" 384 syn match autoitBuiltin "@ProgramFilesDir" 385 syn match autoitBuiltin "@Programs\(Common\)\=Dir" 386 syn match autoitBuiltin "@ScriptDir" 387 syn match autoitBuiltin "@ScriptFullPath" 388 syn match autoitBuiltin "@ScriptLineNumber" 389 syn match autoitBuiltin "@ScriptName" 390 syn match autoitBuiltin "@SEC" 391 syn match autoitBuiltin "@StartMenu\(Common\)\=Dir" 392 syn match autoitBuiltin "@Startup\(Common\)\=Dir" 393 syn match autoitBuiltin "@SW_DISABLE" 394 syn match autoitBuiltin "@SW_ENABLE" 395 syn match autoitBuiltin "@SW_HIDE" 396 syn match autoitBuiltin "@SW_LOCK" 397 syn match autoitBuiltin "@SW_MAXIMIZE" 398 syn match autoitBuiltin "@SW_MINIMIZE" 399 syn match autoitBuiltin "@SW_RESTORE" 400 syn match autoitBuiltin "@SW_SHOW" 401 syn match autoitBuiltin "@SW_SHOWDEFAULT" 402 syn match autoitBuiltin "@SW_SHOWMAXIMIZED" 403 syn match autoitBuiltin "@SW_SHOWMINIMIZED" 404 syn match autoitBuiltin "@SW_SHOWMINNOACTIVE" 405 syn match autoitBuiltin "@SW_SHOWNA" 406 syn match autoitBuiltin "@SW_SHOWNOACTIVATE" 407 syn match autoitBuiltin "@SW_SHOWNORMAL" 408 syn match autoitBuiltin "@SW_UNLOCK" 409 syn match autoitBuiltin "@SystemDir" 410 syn match autoitBuiltin "@TAB" 411 syn match autoitBuiltin "@TempDir" 412 syn match autoitBuiltin "@TRAY_ID" 413 syn match autoitBuiltin "@TrayIconFlashing" 414 syn match autoitBuiltin "@TrayIconVisible" 415 syn match autoitBuiltin "@UserProfileDir" 416 syn match autoitBuiltin "@UserName" 417 syn match autoitBuiltin "@WDAY" 418 syn match autoitBuiltin "@WindowsDir" 419 syn match autoitBuiltin "@WorkingDir" 420 syn match autoitBuiltin "@YDAY" 421 syn match autoitBuiltin "@YEAR" 422 423 "comments and commenting-out 424 syn match autoitComment ";.*" 425 "in this way also #ce alone will be highlighted 426 syn match autoitCommDelimiter "^\s*#comments-start\>" 427 syn match autoitCommDelimiter "^\s*#cs\>" 428 syn match autoitCommDelimiter "^\s*#comments-end\>" 429 syn match autoitCommDelimiter "^\s*#ce\>" 430 syn region autoitComment 431 \ matchgroup=autoitCommDelimiter 432 \ start="^\s*#comments-start\>" start="^\s*#cs\>" 433 \ end="^\s*#comments-end\>" end="^\s*#ce\>" 434 435 "one character operators 436 syn match autoitOperator "[-+*/&^=<>][^-+*/&^=<>]"me=e-1 437 "two characters operators 438 syn match autoitOperator "==[^=]"me=e-1 439 syn match autoitOperator "<>" 440 syn match autoitOperator "<=" 441 syn match autoitOperator ">=" 442 syn match autoitOperator "+=" 443 syn match autoitOperator "-=" 444 syn match autoitOperator "*=" 445 syn match autoitOperator "/=" 446 syn match autoitOperator "&=" 447 syn keyword autoitOperator NOT AND OR 448 449 syn match autoitParen "(\|)" 450 syn match autoitBracket "\[\|\]" 451 syn match autoitComma "," 452 453 "numbers must come after operator '-' 454 "decimal numbers without a dot 455 syn match autoitNumber "-\=\<\d\+\>" 456 "hexadecimal numbers without a dot 457 syn match autoitNumber "-\=\<0x\x\+\>" 458 "floating point number with dot (inside or at end) 459 460 syn match autoitNumber "-\=\<\d\+\.\d*\>" 461 "floating point number, starting with a dot 462 syn match autoitNumber "-\=\<\.\d\+\>" 463 "scientific notation numbers without dots 464 syn match autoitNumber "-\=\<\d\+e[-+]\=\d\+\>" 465 "scientific notation numbers with dots 466 syn match autoitNumber "-\=\<\(\(\d\+\.\d*\)\|\(\.\d\+\)\)\(e[-+]\=\d\+\)\=\>" 467 468 "string constants 469 "we want the escaped quotes marked in red 470 syn match autoitDoubledSingles +''+ contained 471 syn match autoitDoubledDoubles +""+ contained 472 "we want the continuation character marked in red 473 "(also at the top level, not just contained) 474 syn match autoitCont "_$" 475 476 " send key list - must be defined before autoitStrings 477 syn match autoitSend "{!}" contained 478 syn match autoitSend "{#}" contained 479 syn match autoitSend "{+}" contained 480 syn match autoitSend "{^}" contained 481 syn match autoitSend "{{}" contained 482 syn match autoitSend "{}}" contained 483 syn match autoitSend "{SPACE}" contained 484 syn match autoitSend "{ENTER}" contained 485 syn match autoitSend "{ALT}" contained 486 syn match autoitSend "{BACKSPACE}" contained 487 syn match autoitSend "{BS}" contained 488 syn match autoitSend "{DELETE}" contained 489 syn match autoitSend "{DEL}" contained 490 syn match autoitSend "{UP}" contained 491 syn match autoitSend "{DOWN}" contained 492 syn match autoitSend "{LEFT}" contained 493 syn match autoitSend "{RIGHT}" contained 494 syn match autoitSend "{HOME}" contained 495 syn match autoitSend "{END}" contained 496 syn match autoitSend "{ESCAPE}" contained 497 syn match autoitSend "{ESC}" contained 498 syn match autoitSend "{INSERT}" contained 499 syn match autoitSend "{INS}" contained 500 syn match autoitSend "{PGUP}" contained 501 syn match autoitSend "{PGDN}" contained 502 syn match autoitSend "{F1}" contained 503 syn match autoitSend "{F2}" contained 504 syn match autoitSend "{F3}" contained 505 syn match autoitSend "{F4}" contained 506 syn match autoitSend "{F5}" contained 507 syn match autoitSend "{F6}" contained 508 syn match autoitSend "{F7}" contained 509 syn match autoitSend "{F8}" contained 510 syn match autoitSend "{F9}" contained 511 syn match autoitSend "{F10}" contained 512 syn match autoitSend "{F11}" contained 513 syn match autoitSend "{F12}" contained 514 syn match autoitSend "{TAB}" contained 515 syn match autoitSend "{PRINTSCREEN}" contained 516 syn match autoitSend "{LWIN}" contained 517 syn match autoitSend "{RWIN}" contained 518 syn match autoitSend "{NUMLOCK}" contained 519 syn match autoitSend "{CTRLBREAK}" contained 520 syn match autoitSend "{PAUSE}" contained 521 syn match autoitSend "{CAPSLOCK}" contained 522 syn match autoitSend "{NUMPAD0}" contained 523 syn match autoitSend "{NUMPAD1}" contained 524 syn match autoitSend "{NUMPAD2}" contained 525 syn match autoitSend "{NUMPAD3}" contained 526 syn match autoitSend "{NUMPAD4}" contained 527 syn match autoitSend "{NUMPAD5}" contained 528 syn match autoitSend "{NUMPAD6}" contained 529 syn match autoitSend "{NUMPAD7}" contained 530 syn match autoitSend "{NUMPAD8}" contained 531 syn match autoitSend "{NUMPAD9}" contained 532 syn match autoitSend "{NUMPADMULT}" contained 533 syn match autoitSend "{NUMPADADD}" contained 534 syn match autoitSend "{NUMPADSUB}" contained 535 syn match autoitSend "{NUMPADDIV}" contained 536 syn match autoitSend "{NUMPADDOT}" contained 537 syn match autoitSend "{NUMPADENTER}" contained 538 syn match autoitSend "{APPSKEY}" contained 539 syn match autoitSend "{LALT}" contained 540 syn match autoitSend "{RALT}" contained 541 syn match autoitSend "{LCTRL}" contained 542 syn match autoitSend "{RCTRL}" contained 543 syn match autoitSend "{LSHIFT}" contained 544 syn match autoitSend "{RSHIFT}" contained 545 syn match autoitSend "{SLEEP}" contained 546 syn match autoitSend "{ALTDOWN}" contained 547 syn match autoitSend "{SHIFTDOWN}" contained 548 syn match autoitSend "{CTRLDOWN}" contained 549 syn match autoitSend "{LWINDOWN}" contained 550 syn match autoitSend "{RWINDOWN}" contained 551 syn match autoitSend "{ASC \d\d\d\d}" contained 552 syn match autoitSend "{BROWSER_BACK}" contained 553 syn match autoitSend "{BROWSER_FORWARD}" contained 554 syn match autoitSend "{BROWSER_REFRESH}" contained 555 syn match autoitSend "{BROWSER_STOP}" contained 556 syn match autoitSend "{BROWSER_SEARCH}" contained 557 syn match autoitSend "{BROWSER_FAVORITES}" contained 558 syn match autoitSend "{BROWSER_HOME}" contained 559 syn match autoitSend "{VOLUME_MUTE}" contained 560 syn match autoitSend "{VOLUME_DOWN}" contained 561 syn match autoitSend "{VOLUME_UP}" contained 562 syn match autoitSend "{MEDIA_NEXT}" contained 563 syn match autoitSend "{MEDIA_PREV}" contained 564 syn match autoitSend "{MEDIA_STOP}" contained 565 syn match autoitSend "{MEDIA_PLAY_PAUSE}" contained 566 syn match autoitSend "{LAUNCH_MAIL}" contained 567 syn match autoitSend "{LAUNCH_MEDIA}" contained 568 syn match autoitSend "{LAUNCH_APP1}" contained 569 syn match autoitSend "{LAUNCH_APP2}" contained 570 571 "this was tricky! 572 "we use an oneline region, instead of a match, in order to use skip= 573 "matchgroup= so start and end quotes are not considered as au3Doubled 574 "contained 575 syn region autoitString oneline contains=autoitSend matchgroup=autoitQuote start=+"+ 576 \ end=+"+ end=+_\n\{1}.*"+ 577 \ contains=autoitCont,autoitDoubledDoubles skip=+""+ 578 syn region autoitString oneline matchgroup=autoitQuote start=+'+ 579 \ end=+'+ end=+_\n\{1}.*'+ 580 \ contains=autoitCont,autoitDoubledSingles skip=+''+ 581 582 syn match autoitVarSelector "\$" contained display 583 syn match autoitVariable "$\w\+" contains=autoitVarSelector 584 585 " options - must be defined after autoitStrings 586 syn match autoitOption "\([\"\']\)CaretCoordMode\1" 587 syn match autoitOption "\([\"\']\)ColorMode\1" 588 syn match autoitOption "\([\"\']\)ExpandEnvStrings\1" 589 syn match autoitOption "\([\"\']\)ExpandVarStrings\1" 590 syn match autoitOption "\([\"\']\)FtpBinaryMode\1" 591 syn match autoitOption "\([\"\']\)GUICloseOnEsc\1" 592 syn match autoitOption "\([\"\']\)GUICoordMode\1" 593 syn match autoitOption "\([\"\']\)GUIDataSeparatorChar\1" 594 syn match autoitOption "\([\"\']\)GUIOnEventMode\1" 595 syn match autoitOption "\([\"\']\)GUIResizeMode\1" 596 syn match autoitOption "\([\"\']\)GUIEventCompatibilityMode\1" 597 syn match autoitOption "\([\"\']\)MouseClickDelay\1" 598 syn match autoitOption "\([\"\']\)MouseClickDownDelay\1" 599 syn match autoitOption "\([\"\']\)MouseClickDragDelay\1" 600 syn match autoitOption "\([\"\']\)MouseCoordMode\1" 601 syn match autoitOption "\([\"\']\)MustDeclareVars\1" 602 syn match autoitOption "\([\"\']\)OnExitFunc\1" 603 syn match autoitOption "\([\"\']\)PixelCoordMode\1" 604 syn match autoitOption "\([\"\']\)RunErrorsFatal\1" 605 syn match autoitOption "\([\"\']\)SendAttachMode\1" 606 syn match autoitOption "\([\"\']\)SendCapslockMode\1" 607 syn match autoitOption "\([\"\']\)SendKeyDelay\1" 608 syn match autoitOption "\([\"\']\)SendKeyDownDelay\1" 609 syn match autoitOption "\([\"\']\)TCPTimeout\1" 610 syn match autoitOption "\([\"\']\)TrayAutoPause\1" 611 syn match autoitOption "\([\"\']\)TrayIconDebug\1" 612 syn match autoitOption "\([\"\']\)TrayIconHide\1" 613 syn match autoitOption "\([\"\']\)TrayMenuMode\1" 614 syn match autoitOption "\([\"\']\)TrayOnEventMode\1" 615 syn match autoitOption "\([\"\']\)WinDetectHiddenText\1" 616 syn match autoitOption "\([\"\']\)WinSearchChildren\1" 617 syn match autoitOption "\([\"\']\)WinTextMatchMode\1" 618 syn match autoitOption "\([\"\']\)WinTitleMatchMode\1" 619 syn match autoitOption "\([\"\']\)WinWaitDelay\1" 620 621 " styles - must be defined after autoitVariable 622 " common 623 syn match autoitStyle "\$WS_BORDER" 624 syn match autoitStyle "\$WS_POPUP" 625 syn match autoitStyle "\$WS_CAPTION" 626 syn match autoitStyle "\$WS_CLIPCHILDREN" 627 syn match autoitStyle "\$WS_CLIPSIBLINGS" 628 syn match autoitStyle "\$WS_DISABLED" 629 syn match autoitStyle "\$WS_DLGFRAME" 630 syn match autoitStyle "\$WS_HSCROLL" 631 syn match autoitStyle "\$WS_MAXIMIZE" 632 syn match autoitStyle "\$WS_MAXIMIZEBOX" 633 syn match autoitStyle "\$WS_MINIMIZE" 634 syn match autoitStyle "\$WS_MINIMIZEBOX" 635 syn match autoitStyle "\$WS_OVERLAPPED" 636 syn match autoitStyle "\$WS_OVERLAPPEDWINDOW" 637 syn match autoitStyle "\$WS_POPUPWINDOW" 638 syn match autoitStyle "\$WS_SIZEBOX" 639 syn match autoitStyle "\$WS_SYSMENU" 640 syn match autoitStyle "\$WS_THICKFRAME" 641 syn match autoitStyle "\$WS_VSCROLL" 642 syn match autoitStyle "\$WS_VISIBLE" 643 syn match autoitStyle "\$WS_CHILD" 644 syn match autoitStyle "\$WS_GROUP" 645 syn match autoitStyle "\$WS_TABSTOP" 646 syn match autoitStyle "\$DS_MODALFRAME" 647 syn match autoitStyle "\$DS_SETFOREGROUND" 648 syn match autoitStyle "\$DS_CONTEXTHELP" 649 " common extended 650 syn match autoitStyle "\$WS_EX_ACCEPTFILES" 651 syn match autoitStyle "\$WS_EX_APPWINDOW" 652 syn match autoitStyle "\$WS_EX_CLIENTEDGE" 653 syn match autoitStyle "\$WS_EX_CONTEXTHELP" 654 syn match autoitStyle "\$WS_EX_DLGMODALFRAME" 655 syn match autoitStyle "\$WS_EX_MDICHILD" 656 syn match autoitStyle "\$WS_EX_OVERLAPPEDWINDOW" 657 syn match autoitStyle "\$WS_EX_STATICEDGE" 658 syn match autoitStyle "\$WS_EX_TOPMOST" 659 syn match autoitStyle "\$WS_EX_TRANSPARENT" 660 syn match autoitStyle "\$WS_EX_TOOLWINDOW" 661 syn match autoitStyle "\$WS_EX_WINDOWEDGE" 662 syn match autoitStyle "\$WS_EX_LAYERED" 663 syn match autoitStyle "\$GUI_WS_EX_PARENTDRAG" 664 " checkbox 665 syn match autoitStyle "\$BS_3STATE" 666 syn match autoitStyle "\$BS_AUTO3STATE" 667 syn match autoitStyle "\$BS_AUTOCHECKBOX" 668 syn match autoitStyle "\$BS_CHECKBOX" 669 syn match autoitStyle "\$BS_LEFT" 670 syn match autoitStyle "\$BS_PUSHLIKE" 671 syn match autoitStyle "\$BS_RIGHT" 672 syn match autoitStyle "\$BS_RIGHTBUTTON" 673 syn match autoitStyle "\$BS_GROUPBOX" 674 syn match autoitStyle "\$BS_AUTORADIOBUTTON" 675 " push button 676 syn match autoitStyle "\$BS_BOTTOM" 677 syn match autoitStyle "\$BS_CENTER" 678 syn match autoitStyle "\$BS_DEFPUSHBUTTON" 679 syn match autoitStyle "\$BS_MULTILINE" 680 syn match autoitStyle "\$BS_TOP" 681 syn match autoitStyle "\$BS_VCENTER" 682 syn match autoitStyle "\$BS_ICON" 683 syn match autoitStyle "\$BS_BITMAP" 684 syn match autoitStyle "\$BS_FLAT" 685 " combo 686 syn match autoitStyle "\$CBS_AUTOHSCROLL" 687 syn match autoitStyle "\$CBS_DISABLENOSCROLL" 688 syn match autoitStyle "\$CBS_DROPDOWN" 689 syn match autoitStyle "\$CBS_DROPDOWNLIST" 690 syn match autoitStyle "\$CBS_LOWERCASE" 691 syn match autoitStyle "\$CBS_NOINTEGRALHEIGHT" 692 syn match autoitStyle "\$CBS_OEMCONVERT" 693 syn match autoitStyle "\$CBS_SIMPLE" 694 syn match autoitStyle "\$CBS_SORT" 695 syn match autoitStyle "\$CBS_UPPERCASE" 696 " list 697 syn match autoitStyle "\$LBS_DISABLENOSCROLL" 698 syn match autoitStyle "\$LBS_NOINTEGRALHEIGHT" 699 syn match autoitStyle "\$LBS_NOSEL" 700 syn match autoitStyle "\$LBS_NOTIFY" 701 syn match autoitStyle "\$LBS_SORT" 702 syn match autoitStyle "\$LBS_STANDARD" 703 syn match autoitStyle "\$LBS_USETABSTOPS" 704 " edit/input 705 syn match autoitStyle "\$ES_AUTOHSCROLL" 706 syn match autoitStyle "\$ES_AUTOVSCROLL" 707 syn match autoitStyle "\$ES_CENTER" 708 syn match autoitStyle "\$ES_LOWERCASE" 709 syn match autoitStyle "\$ES_NOHIDESEL" 710 syn match autoitStyle "\$ES_NUMBER" 711 syn match autoitStyle "\$ES_OEMCONVERT" 712 syn match autoitStyle "\$ES_MULTILINE" 713 syn match autoitStyle "\$ES_PASSWORD" 714 syn match autoitStyle "\$ES_READONLY" 715 syn match autoitStyle "\$ES_RIGHT" 716 syn match autoitStyle "\$ES_UPPERCASE" 717 syn match autoitStyle "\$ES_WANTRETURN" 718 " progress bar 719 syn match autoitStyle "\$PBS_SMOOTH" 720 syn match autoitStyle "\$PBS_VERTICAL" 721 " up-down 722 syn match autoitStyle "\$UDS_ALIGNLEFT" 723 syn match autoitStyle "\$UDS_ALIGNRIGHT" 724 syn match autoitStyle "\$UDS_ARROWKEYS" 725 syn match autoitStyle "\$UDS_HORZ" 726 syn match autoitStyle "\$UDS_NOTHOUSANDS" 727 syn match autoitStyle "\$UDS_WRAP" 728 " label/static 729 syn match autoitStyle "\$SS_BLACKFRAME" 730 syn match autoitStyle "\$SS_BLACKRECT" 731 syn match autoitStyle "\$SS_CENTER" 732 syn match autoitStyle "\$SS_CENTERIMAGE" 733 syn match autoitStyle "\$SS_ETCHEDFRAME" 734 syn match autoitStyle "\$SS_ETCHEDHORZ" 735 syn match autoitStyle "\$SS_ETCHEDVERT" 736 syn match autoitStyle "\$SS_GRAYFRAME" 737 syn match autoitStyle "\$SS_GRAYRECT" 738 syn match autoitStyle "\$SS_LEFT" 739 syn match autoitStyle "\$SS_LEFTNOWORDWRAP" 740 syn match autoitStyle "\$SS_NOPREFIX" 741 syn match autoitStyle "\$SS_NOTIFY" 742 syn match autoitStyle "\$SS_RIGHT" 743 syn match autoitStyle "\$SS_RIGHTJUST" 744 syn match autoitStyle "\$SS_SIMPLE" 745 syn match autoitStyle "\$SS_SUNKEN" 746 syn match autoitStyle "\$SS_WHITEFRAME" 747 syn match autoitStyle "\$SS_WHITERECT" 748 " tab 749 syn match autoitStyle "\$TCS_SCROLLOPPOSITE" 750 syn match autoitStyle "\$TCS_BOTTOM" 751 syn match autoitStyle "\$TCS_RIGHT" 752 syn match autoitStyle "\$TCS_MULTISELECT" 753 syn match autoitStyle "\$TCS_FLATBUTTONS" 754 syn match autoitStyle "\$TCS_FORCEICONLEFT" 755 syn match autoitStyle "\$TCS_FORCELABELLEFT" 756 syn match autoitStyle "\$TCS_HOTTRACK" 757 syn match autoitStyle "\$TCS_VERTICAL" 758 syn match autoitStyle "\$TCS_TABS" 759 syn match autoitStyle "\$TCS_BUTTONS" 760 syn match autoitStyle "\$TCS_SINGLELINE" 761 syn match autoitStyle "\$TCS_MULTILINE" 762 syn match autoitStyle "\$TCS_RIGHTJUSTIFY" 763 syn match autoitStyle "\$TCS_FIXEDWIDTH" 764 syn match autoitStyle "\$TCS_RAGGEDRIGHT" 765 syn match autoitStyle "\$TCS_FOCUSONBUTTONDOWN" 766 syn match autoitStyle "\$TCS_OWNERDRAWFIXED" 767 syn match autoitStyle "\$TCS_TOOLTIPS" 768 syn match autoitStyle "\$TCS_FOCUSNEVER" 769 " avi clip 770 syn match autoitStyle "\$ACS_AUTOPLAY" 771 syn match autoitStyle "\$ACS_CENTER" 772 syn match autoitStyle "\$ACS_TRANSPARENT" 773 syn match autoitStyle "\$ACS_NONTRANSPARENT" 774 " date 775 syn match autoitStyle "\$DTS_UPDOWN" 776 syn match autoitStyle "\$DTS_SHOWNONE" 777 syn match autoitStyle "\$DTS_LONGDATEFORMAT" 778 syn match autoitStyle "\$DTS_TIMEFORMAT" 779 syn match autoitStyle "\$DTS_RIGHTALIGN" 780 syn match autoitStyle "\$DTS_SHORTDATEFORMAT" 781 " monthcal 782 syn match autoitStyle "\$MCS_NOTODAY" 783 syn match autoitStyle "\$MCS_NOTODAYCIRCLE" 784 syn match autoitStyle "\$MCS_WEEKNUMBERS" 785 " treeview 786 syn match autoitStyle "\$TVS_HASBUTTONS" 787 syn match autoitStyle "\$TVS_HASLINES" 788 syn match autoitStyle "\$TVS_LINESATROOT" 789 syn match autoitStyle "\$TVS_DISABLEDRAGDROP" 790 syn match autoitStyle "\$TVS_SHOWSELALWAYS" 791 syn match autoitStyle "\$TVS_RTLREADING" 792 syn match autoitStyle "\$TVS_NOTOOLTIPS" 793 syn match autoitStyle "\$TVS_CHECKBOXES" 794 syn match autoitStyle "\$TVS_TRACKSELECT" 795 syn match autoitStyle "\$TVS_SINGLEEXPAND" 796 syn match autoitStyle "\$TVS_FULLROWSELECT" 797 syn match autoitStyle "\$TVS_NOSCROLL" 798 syn match autoitStyle "\$TVS_NONEVENHEIGHT" 799 " slider 800 syn match autoitStyle "\$TBS_AUTOTICKS" 801 syn match autoitStyle "\$TBS_BOTH" 802 syn match autoitStyle "\$TBS_BOTTOM" 803 syn match autoitStyle "\$TBS_HORZ" 804 syn match autoitStyle "\$TBS_VERT" 805 syn match autoitStyle "\$TBS_NOTHUMB" 806 syn match autoitStyle "\$TBS_NOTICKS" 807 syn match autoitStyle "\$TBS_LEFT" 808 syn match autoitStyle "\$TBS_RIGHT" 809 syn match autoitStyle "\$TBS_TOP" 810 " listview 811 syn match autoitStyle "\$LVS_ICON" 812 syn match autoitStyle "\$LVS_REPORT" 813 syn match autoitStyle "\$LVS_SMALLICON" 814 syn match autoitStyle "\$LVS_LIST" 815 syn match autoitStyle "\$LVS_EDITLABELS" 816 syn match autoitStyle "\$LVS_NOCOLUMNHEADER" 817 syn match autoitStyle "\$LVS_NOSORTHEADER" 818 syn match autoitStyle "\$LVS_SINGLESEL" 819 syn match autoitStyle "\$LVS_SHOWSELALWAYS" 820 syn match autoitStyle "\$LVS_SORTASCENDING" 821 syn match autoitStyle "\$LVS_SORTDESCENDING" 822 " listview extended 823 syn match autoitStyle "\$LVS_EX_FULLROWSELECT" 824 syn match autoitStyle "\$LVS_EX_GRIDLINES" 825 syn match autoitStyle "\$LVS_EX_HEADERDRAGDROP" 826 syn match autoitStyle "\$LVS_EX_TRACKSELECT" 827 syn match autoitStyle "\$LVS_EX_CHECKBOXES" 828 syn match autoitStyle "\$LVS_EX_BORDERSELECT" 829 syn match autoitStyle "\$LVS_EX_DOUBLEBUFFER" 830 syn match autoitStyle "\$LVS_EX_FLATSB" 831 syn match autoitStyle "\$LVS_EX_MULTIWORKAREAS" 832 syn match autoitStyle "\$LVS_EX_SNAPTOGRID" 833 syn match autoitStyle "\$LVS_EX_SUBITEMIMAGES" 834 835 " constants - must be defined after autoitVariable - excludes styles 836 " constants - autoit options 837 syn match autoitConst "\$OPT_COORDSRELATIVE" 838 syn match autoitConst "\$OPT_COORDSABSOLUTE" 839 syn match autoitConst "\$OPT_COORDSCLIENT" 840 syn match autoitConst "\$OPT_ERRORSILENT" 841 syn match autoitConst "\$OPT_ERRORFATAL" 842 syn match autoitConst "\$OPT_CAPSNOSTORE" 843 syn match autoitConst "\$OPT_CAPSSTORE" 844 syn match autoitConst "\$OPT_MATCHSTART" 845 syn match autoitConst "\$OPT_MATCHANY" 846 syn match autoitConst "\$OPT_MATCHEXACT" 847 syn match autoitConst "\$OPT_MATCHADVANCED" 848 " constants - file 849 syn match autoitConst "\$FC_NOOVERWRITE" 850 syn match autoitConst "\$FC_OVERWRITE" 851 syn match autoitConst "\$FT_MODIFIED" 852 syn match autoitConst "\$FT_CREATED" 853 syn match autoitConst "\$FT_ACCESSED" 854 syn match autoitConst "\$FO_READ" 855 syn match autoitConst "\$FO_APPEND" 856 syn match autoitConst "\$FO_OVERWRITE" 857 syn match autoitConst "\$EOF" 858 syn match autoitConst "\$FD_FILEMUSTEXIST" 859 syn match autoitConst "\$FD_PATHMUSTEXIST" 860 syn match autoitConst "\$FD_MULTISELECT" 861 syn match autoitConst "\$FD_PROMPTCREATENEW" 862 syn match autoitConst "\$FD_PROMPTOVERWRITE" 863 " constants - keyboard 864 syn match autoitConst "\$KB_SENDSPECIAL" 865 syn match autoitConst "\$KB_SENDRAW" 866 syn match autoitConst "\$KB_CAPSOFF" 867 syn match autoitConst "\$KB_CAPSON" 868 " constants - message box 869 syn match autoitConst "\$MB_OK" 870 syn match autoitConst "\$MB_OKCANCEL" 871 syn match autoitConst "\$MB_ABORTRETRYIGNORE" 872 syn match autoitConst "\$MB_YESNOCANCEL" 873 syn match autoitConst "\$MB_YESNO" 874 syn match autoitConst "\$MB_RETRYCANCEL" 875 syn match autoitConst "\$MB_ICONHAND" 876 syn match autoitConst "\$MB_ICONQUESTION" 877 syn match autoitConst "\$MB_ICONEXCLAMATION" 878 syn match autoitConst "\$MB_ICONASTERISK" 879 syn match autoitConst "\$MB_DEFBUTTON1" 880 syn match autoitConst "\$MB_DEFBUTTON2" 881 syn match autoitConst "\$MB_DEFBUTTON3" 882 syn match autoitConst "\$MB_APPLMODAL" 883 syn match autoitConst "\$MB_SYSTEMMODAL" 884 syn match autoitConst "\$MB_TASKMODAL" 885 syn match autoitConst "\$MB_TOPMOST" 886 syn match autoitConst "\$MB_RIGHTJUSTIFIED" 887 syn match autoitConst "\$IDTIMEOUT" 888 syn match autoitConst "\$IDOK" 889 syn match autoitConst "\$IDCANCEL" 890 syn match autoitConst "\$IDABORT" 891 syn match autoitConst "\$IDRETRY" 892 syn match autoitConst "\$IDIGNORE" 893 syn match autoitConst "\$IDYES" 894 syn match autoitConst "\$IDNO" 895 syn match autoitConst "\$IDTRYAGAIN" 896 syn match autoitConst "\$IDCONTINUE" 897 " constants - progress and splash 898 syn match autoitConst "\$DLG_NOTITLE" 899 syn match autoitConst "\$DLG_NOTONTOP" 900 syn match autoitConst "\$DLG_TEXTLEFT" 901 syn match autoitConst "\$DLG_TEXTRIGHT" 902 syn match autoitConst "\$DLG_MOVEABLE" 903 syn match autoitConst "\$DLG_TEXTVCENTER" 904 " constants - tray tip 905 syn match autoitConst "\$TIP_ICONNONE" 906 syn match autoitConst "\$TIP_ICONASTERISK" 907 syn match autoitConst "\$TIP_ICONEXCLAMATION" 908 syn match autoitConst "\$TIP_ICONHAND" 909 syn match autoitConst "\$TIP_NOSOUND" 910 " constants - mouse 911 syn match autoitConst "\$IDC_UNKNOWN" 912 syn match autoitConst "\$IDC_APPSTARTING" 913 syn match autoitConst "\$IDC_ARROW" 914 syn match autoitConst "\$IDC_CROSS" 915 syn match autoitConst "\$IDC_HELP" 916 syn match autoitConst "\$IDC_IBEAM" 917 syn match autoitConst "\$IDC_ICON" 918 syn match autoitConst "\$IDC_NO" 919 syn match autoitConst "\$IDC_SIZE" 920 syn match autoitConst "\$IDC_SIZEALL" 921 syn match autoitConst "\$IDC_SIZENESW" 922 syn match autoitConst "\$IDC_SIZENS" 923 syn match autoitConst "\$IDC_SIZENWSE" 924 syn match autoitConst "\$IDC_SIZEWE" 925 syn match autoitConst "\$IDC_UPARROW" 926 syn match autoitConst "\$IDC_WAIT" 927 " constants - process 928 syn match autoitConst "\$SD_LOGOFF" 929 syn match autoitConst "\$SD_SHUTDOWN" 930 syn match autoitConst "\$SD_REBOOT" 931 syn match autoitConst "\$SD_FORCE" 932 syn match autoitConst "\$SD_POWERDOWN" 933 " constants - string 934 syn match autoitConst "\$STR_NOCASESENSE" 935 syn match autoitConst "\$STR_CASESENSE" 936 syn match autoitConst "\$STR_STRIPLEADING" 937 syn match autoitConst "\$STR_STRIPTRAILING" 938 syn match autoitConst "\$STR_STRIPSPACES" 939 syn match autoitConst "\$STR_STRIPALL" 940 " constants - tray 941 syn match autoitConst "\$TRAY_ITEM_EXIT" 942 syn match autoitConst "\$TRAY_ITEM_PAUSE" 943 syn match autoitConst "\$TRAY_ITEM_FIRST" 944 syn match autoitConst "\$TRAY_CHECKED" 945 syn match autoitConst "\$TRAY_UNCHECKED" 946 syn match autoitConst "\$TRAY_ENABLE" 947 syn match autoitConst "\$TRAY_DISABLE" 948 syn match autoitConst "\$TRAY_FOCUS" 949 syn match autoitConst "\$TRAY_DEFAULT" 950 syn match autoitConst "\$TRAY_EVENT_SHOWICON" 951 syn match autoitConst "\$TRAY_EVENT_HIDEICON" 952 syn match autoitConst "\$TRAY_EVENT_FLASHICON" 953 syn match autoitConst "\$TRAY_EVENT_NOFLASHICON" 954 syn match autoitConst "\$TRAY_EVENT_PRIMARYDOWN" 955 syn match autoitConst "\$TRAY_EVENT_PRIMARYUP" 956 syn match autoitConst "\$TRAY_EVENT_SECONDARYDOWN" 957 syn match autoitConst "\$TRAY_EVENT_SECONDARYUP" 958 syn match autoitConst "\$TRAY_EVENT_MOUSEOVER" 959 syn match autoitConst "\$TRAY_EVENT_MOUSEOUT" 960 syn match autoitConst "\$TRAY_EVENT_PRIMARYDOUBLE" 961 syn match autoitConst "\$TRAY_EVENT_SECONDARYDOUBLE" 962 " constants - stdio 963 syn match autoitConst "\$STDIN_CHILD" 964 syn match autoitConst "\$STDOUT_CHILD" 965 syn match autoitConst "\$STDERR_CHILD" 966 " constants - color 967 syn match autoitConst "\$COLOR_BLACK" 968 syn match autoitConst "\$COLOR_SILVER" 969 syn match autoitConst "\$COLOR_GRAY" 970 syn match autoitConst "\$COLOR_WHITE" 971 syn match autoitConst "\$COLOR_MAROON" 972 syn match autoitConst "\$COLOR_RED" 973 syn match autoitConst "\$COLOR_PURPLE" 974 syn match autoitConst "\$COLOR_FUCHSIA" 975 syn match autoitConst "\$COLOR_GREEN" 976 syn match autoitConst "\$COLOR_LIME" 977 syn match autoitConst "\$COLOR_OLIVE" 978 syn match autoitConst "\$COLOR_YELLOW" 979 syn match autoitConst "\$COLOR_NAVY" 980 syn match autoitConst "\$COLOR_BLUE" 981 syn match autoitConst "\$COLOR_TEAL" 982 syn match autoitConst "\$COLOR_AQUA" 983 " constants - reg value type 984 syn match autoitConst "\$REG_NONE" 985 syn match autoitConst "\$REG_SZ" 986 syn match autoitConst "\$REG_EXPAND_SZ" 987 syn match autoitConst "\$REG_BINARY" 988 syn match autoitConst "\$REG_DWORD" 989 syn match autoitConst "\$REG_DWORD_BIG_ENDIAN" 990 syn match autoitConst "\$REG_LINK" 991 syn match autoitConst "\$REG_MULTI_SZ" 992 syn match autoitConst "\$REG_RESOURCE_LIST" 993 syn match autoitConst "\$REG_FULL_RESOURCE_DESCRIPTOR" 994 syn match autoitConst "\$REG_RESOURCE_REQUIREMENTS_LIST" 995 " guiconstants - events and messages 996 syn match autoitConst "\$GUI_EVENT_CLOSE" 997 syn match autoitConst "\$GUI_EVENT_MINIMIZE" 998 syn match autoitConst "\$GUI_EVENT_RESTORE" 999 syn match autoitConst "\$GUI_EVENT_MAXIMIZE" 1000 syn match autoitConst "\$GUI_EVENT_PRIMARYDOWN" 1001 syn match autoitConst "\$GUI_EVENT_PRIMARYUP" 1002 syn match autoitConst "\$GUI_EVENT_SECONDARYDOWN" 1003 syn match autoitConst "\$GUI_EVENT_SECONDARYUP" 1004 syn match autoitConst "\$GUI_EVENT_MOUSEMOVE" 1005 syn match autoitConst "\$GUI_EVENT_RESIZED" 1006 syn match autoitConst "\$GUI_EVENT_DROPPED" 1007 syn match autoitConst "\$GUI_RUNDEFMSG" 1008 " guiconstants - state 1009 syn match autoitConst "\$GUI_AVISTOP" 1010 syn match autoitConst "\$GUI_AVISTART" 1011 syn match autoitConst "\$GUI_AVICLOSE" 1012 syn match autoitConst "\$GUI_CHECKED" 1013 syn match autoitConst "\$GUI_INDETERMINATE" 1014 syn match autoitConst "\$GUI_UNCHECKED" 1015 syn match autoitConst "\$GUI_DROPACCEPTED" 1016 syn match autoitConst "\$GUI_DROPNOTACCEPTED" 1017 syn match autoitConst "\$GUI_ACCEPTFILES" 1018 syn match autoitConst "\$GUI_SHOW" 1019 syn match autoitConst "\$GUI_HIDE" 1020 syn match autoitConst "\$GUI_ENABLE" 1021 syn match autoitConst "\$GUI_DISABLE" 1022 syn match autoitConst "\$GUI_FOCUS" 1023 syn match autoitConst "\$GUI_NOFOCUS" 1024 syn match autoitConst "\$GUI_DEFBUTTON" 1025 syn match autoitConst "\$GUI_EXPAND" 1026 syn match autoitConst "\$GUI_ONTOP" 1027 " guiconstants - font 1028 syn match autoitConst "\$GUI_FONTITALIC" 1029 syn match autoitConst "\$GUI_FONTUNDER" 1030 syn match autoitConst "\$GUI_FONTSTRIKE" 1031 " guiconstants - resizing 1032 syn match autoitConst "\$GUI_DOCKAUTO" 1033 syn match autoitConst "\$GUI_DOCKLEFT" 1034 syn match autoitConst "\$GUI_DOCKRIGHT" 1035 syn match autoitConst "\$GUI_DOCKHCENTER" 1036 syn match autoitConst "\$GUI_DOCKTOP" 1037 syn match autoitConst "\$GUI_DOCKBOTTOM" 1038 syn match autoitConst "\$GUI_DOCKVCENTER" 1039 syn match autoitConst "\$GUI_DOCKWIDTH" 1040 syn match autoitConst "\$GUI_DOCKHEIGHT" 1041 syn match autoitConst "\$GUI_DOCKSIZE" 1042 syn match autoitConst "\$GUI_DOCKMENUBAR" 1043 syn match autoitConst "\$GUI_DOCKSTATEBAR" 1044 syn match autoitConst "\$GUI_DOCKALL" 1045 syn match autoitConst "\$GUI_DOCKBORDERS" 1046 " guiconstants - graphic 1047 syn match autoitConst "\$GUI_GR_CLOSE" 1048 syn match autoitConst "\$GUI_GR_LINE" 1049 syn match autoitConst "\$GUI_GR_BEZIER" 1050 syn match autoitConst "\$GUI_GR_MOVE" 1051 syn match autoitConst "\$GUI_GR_COLOR" 1052 syn match autoitConst "\$GUI_GR_RECT" 1053 syn match autoitConst "\$GUI_GR_ELLIPSE" 1054 syn match autoitConst "\$GUI_GR_PIE" 1055 syn match autoitConst "\$GUI_GR_DOT" 1056 syn match autoitConst "\$GUI_GR_PIXEL" 1057 syn match autoitConst "\$GUI_GR_HINT" 1058 syn match autoitConst "\$GUI_GR_REFRESH" 1059 syn match autoitConst "\$GUI_GR_PENSIZE" 1060 syn match autoitConst "\$GUI_GR_NOBKCOLOR" 1061 " guiconstants - control default styles 1062 syn match autoitConst "\$GUI_SS_DEFAULT_AVI" 1063 syn match autoitConst "\$GUI_SS_DEFAULT_BUTTON" 1064 syn match autoitConst "\$GUI_SS_DEFAULT_CHECKBOX" 1065 syn match autoitConst "\$GUI_SS_DEFAULT_COMBO" 1066 syn match autoitConst "\$GUI_SS_DEFAULT_DATE" 1067 syn match autoitConst "\$GUI_SS_DEFAULT_EDIT" 1068 syn match autoitConst "\$GUI_SS_DEFAULT_GRAPHIC" 1069 syn match autoitConst "\$GUI_SS_DEFAULT_GROUP" 1070 syn match autoitConst "\$GUI_SS_DEFAULT_ICON" 1071 syn match autoitConst "\$GUI_SS_DEFAULT_INPUT" 1072 syn match autoitConst "\$GUI_SS_DEFAULT_LABEL" 1073 syn match autoitConst "\$GUI_SS_DEFAULT_LIST" 1074 syn match autoitConst "\$GUI_SS_DEFAULT_LISTVIEW" 1075 syn match autoitConst "\$GUI_SS_DEFAULT_MONTHCAL" 1076 syn match autoitConst "\$GUI_SS_DEFAULT_PIC" 1077 syn match autoitConst "\$GUI_SS_DEFAULT_PROGRESS" 1078 syn match autoitConst "\$GUI_SS_DEFAULT_RADIO" 1079 syn match autoitConst "\$GUI_SS_DEFAULT_SLIDER" 1080 syn match autoitConst "\$GUI_SS_DEFAULT_TAB" 1081 syn match autoitConst "\$GUI_SS_DEFAULT_TREEVIEW" 1082 syn match autoitConst "\$GUI_SS_DEFAULT_UPDOWN" 1083 syn match autoitConst "\$GUI_SS_DEFAULT_GUI" 1084 " guiconstants - background color special flags 1085 syn match autoitConst "\$GUI_BKCOLOR_DEFAULT" 1086 syn match autoitConst "\$GUI_BKCOLOR_LV_ALTERNATE" 1087 syn match autoitConst "\$GUI_BKCOLOR_TRANSPARENT" 1088 1089 " registry constants 1090 syn match autoitConst "\([\"\']\)REG_BINARY\1" 1091 syn match autoitConst "\([\"\']\)REG_SZ\1" 1092 syn match autoitConst "\([\"\']\)REG_MULTI_SZ\1" 1093 syn match autoitConst "\([\"\']\)REG_EXPAND_SZ\1" 1094 syn match autoitConst "\([\"\']\)REG_DWORD\1" 1095 1096 " Define the default highlighting. 1097 " Unused colors: Underlined, Ignore, Error, Todo 1098 hi def link autoitFunction Statement " yellow/yellow 1099 hi def link autoitKeyword Statement 1100 hi def link autoitOperator Operator 1101 hi def link autoitVarSelector Operator 1102 hi def link autoitComment Comment " cyan/blue 1103 hi def link autoitParen Comment 1104 hi def link autoitComma Comment 1105 hi def link autoitBracket Comment 1106 hi def link autoitNumber Constant " magenta/red 1107 hi def link autoitString Constant 1108 hi def link autoitQuote Constant 1109 hi def link autoitIncluded Constant 1110 hi def link autoitCont Special " red/orange 1111 hi def link autoitDoubledSingles Special 1112 hi def link autoitDoubledDoubles Special 1113 hi def link autoitCommDelimiter PreProc " blue/magenta 1114 hi def link autoitInclude PreProc 1115 hi def link autoitVariable Identifier " cyan/cyan 1116 hi def link autoitBuiltin Type " green/green 1117 hi def link autoitOption Type 1118 hi def link autoitStyle Type 1119 hi def link autoitConst Type 1120 hi def link autoitSend Type 1121 1122 syn sync minlines=50 1123 1124 let &cpo = s:keepcpo 1125 unlet s:keepcpo