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