blob: 6b6048aadc8dc4c0df3b8b6930671a8f3f925f10 [file] [log] [blame]
Bram Moolenaar9964e462007-05-05 17:54:07 +00001" 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
Bram Moolenaar519cc552021-11-16 19:18:26 +00008" Included change from #970.
Bram Moolenaar9964e462007-05-05 17:54:07 +00009
Bram Moolenaar9a7224b2012-04-30 15:56:52 +020010" Quit when a syntax file was already loaded.
11if exists("b:current_syntax")
12 finish
13endif
14let s:keepcpo= &cpo
15set cpo&vim
16
17let b:current_syntax = "autoit"
18
Bram Moolenaar9964e462007-05-05 17:54:07 +000019" AutoIt is not case dependent
20syn case ignore
21
22" Definitions for AutoIt reserved keywords
23syn keyword autoitKeyword Default False True
24syn keyword autoitKeyword Const Dim Global Local ReDim
25syn keyword autoitKeyword If Else ElseIf Then EndIf
26syn keyword autoitKeyword Select Switch Case EndSelect EndSwitch
27syn keyword autoitKeyword Enum For In To Step Next
28syn keyword autoitKeyword With While EndWith Wend Do Until
29syn keyword autoitKeyword ContinueCase ContinueLoop ExitLoop Exit
30
31" inside script inclusion and global options
32syn match autoitIncluded display contained "<[^>]*>"
33syn match autoitInclude display "^\s*#\s*include\>\s*["<]"
34 \ contains=autoitIncluded,autoitString
35syn match autoitInclude "^\s*#include-once\>"
36syn match autoitInclude "^\s*#NoTrayIcon\>"
37syn match autoitInclude "^\s*#RequireAdmin\>"
38
39" user-defined functions
40syn keyword autoitKeyword Func ByRef EndFunc Return OnAutoItStart OnAutoItExit
41
42" built-in functions
43" environment management
44syn keyword autoitFunction ClipGet ClipPut EnvGet EnvSet EnvUpdate MemGetStats
45" file, directory, and disk management
46syn keyword autoitFunction ConsoleRead ConsoleWrite ConsoleWriteError
47syn keyword autoitFunction DirCopy DirCreate DirGetSize DirMove DirRemove
48syn keyword autoitFunction DriveGetDrive DriveGetFileSystem DriveGetLabel
49 \ DriveGetSerial DriveGetType DriveMapAdd DriveMapDel DriveMapGet
50 \ DriveSetLabel DriveSpaceFree DriveSpaceTotal DriveStatus
51syn 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
58syn keyword autoitFunction IniDelete IniRead IniReadSection IniReadSectionNames
59 \ IniRenameSection IniWrite IniWriteSection
60syn keyword autoitFunction StderrRead StdinWrite StdoutRead
61" graphic and sound
62syn keyword autoitFunction Beep PixelChecksum PixelGetColor PixelSearch
63 \ SoundPlay SoundSetWaveVolume
64" gui reference
65syn keyword autoitFunction GUICreate GUIDelete GUICtrlGetHandle GUICtrlGetState
66 \ GUICtrlRead GUICtrlRecvMsg GUICtrlSendMsg GUICtrlSendToDummy
67 \ GUIGetCursorInfo GUIGetMsg GUIRegisterMsg GUIStartGroup GUISwitch
68syn 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
79syn keyword autoitFunction GUICtrlRegisterListViewSort GUICtrlSetBkColor
80 \ GUICtrlSetColor GUICtrlSetCursor GUICtrlSetData GUICtrlSetFont
81 \ GUICtrlSetGraphic GUICtrlSetImage GUICtrlSetLimit GUICtrlSetOnEvent
82 \ GUICtrlSetPos GUICtrlSetResizing GUICtrlSetState GUICtrlSetStyle
83 \ GUICtrlSetTip
84syn keyword autoitFunction GUISetBkColor GUISetCoord GUISetCursor GUISetFont
85 \ GUISetHelp GUISetIcon GUISetOnEvent GUISetState
86" keyboard control
87syn keyword autoitFunction HotKeySet Send
88" math
89syn 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
93syn keyword autoitFunction InputBox MsgBox ProgressOff ProgressOn ProgressSet
94 \ SplashImageOn SplashOff SplashTextOn ToolTip
95" miscellaneous
96syn keyword autoitFunction AdlibDisable AdlibEnable AutoItSetOption
97 \ AutoItWinGetTitle AutoItWinSetTitle BlockInput Break Call CDTray
98 \ Execute Opt SetError SetExtended
99" mouse control
100syn keyword autoitFunction MouseClick MouseClickDrag MouseDown MouseGetCursor
101 \ MouseGetPos MouseMove MouseUp MouseWheel
102" network
103syn 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
108syn keyword autoitFunction ObjCreate ObjEvent ObjGet ObjName
109" process management
110syn 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
117syn keyword autoitFunction RegDelete RegEnumKey RegEnumVal RegRead RegWrite
118" string management
119syn 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
126syn keyword autoitFunction Sleep TimerInit TimerDiff
127" tray
128syn 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
133syn 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
137syn 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
143syn 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
150syn 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
156syn keyword autoitFunction _ColorgetBlue _ColorGetGreen _ColorGetRed
157" date
158syn 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
164syn keyword autoitFunction _FileCountLines _FileCreate _FileListToArray
165 \ _FilePrint _FileReadToArray _FileWriteFromArray _FileWriteLog
166 \ _FileWriteToLine _PathFull _PathMake _PathSplit _ReplaceStringInFile
167 \ _TempFile
168" guicombo
169syn 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
186syn 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
194syn keyword autoitFunction _GUICtrlIpAddressClear _GUICtrlIpAddressCreate
195 \ _GUICtrlIpAddressDelete _GUICtrlIpAddressGet _GUICtrlIpAddressIsBlank
196 \ _GUICtrlIpAddressSet _GUICtrlIpAddressSetFocus
197 \ _GUICtrlIpAddressSetFont
198 \ _GUICtrlIpAddressSetRange _GUICtrlIpAddressShowHide
199" guilist
200syn 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
217syn 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
240syn keyword autoitFunction _GUICtrlMonthCalGet1stDOW _GUICtrlMonthCalGetColor
241 \ _GUICtrlMonthCalGetDelta _GUICtrlMonthCalGetMaxSelCount
242 \ _GUICtrlMonthCalGetMaxTodayWidth _GUICtrlMonthCalGetMinReqRect
243 \ _GUICtrlMonthCalSet1stDOW _GUICtrlMonthCalSetColor
244 \ _GUICtrlMonthCalSetDelta _GUICtrlMonthCalSetMaxSelCount
245" guislider
246syn keyword autoitFunction _GUICtrlSliderClearTics _GUICtrlSliderGetLineSize
247 \ _GUICtrlSliderGetNumTics _GUICtrlSliderGetPageSize
248 \ _GUICtrlSliderGetPos _GUICtrlSliderGetRangeMax
249 \ _GUICtrlSliderGetRangeMin _GUICtrlSliderSetLineSize
250 \ _GUICtrlSliderSetPageSize _GUICtrlSliderSetPos
251 \ _GUICtrlSliderSetTicFreq
252" guistatusbar
253syn 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
266syn 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
274syn 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
287syn 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
304syn keyword autoitFunction _GetIP _INetExplorerCapable _INetGetSource _INetMail
305 \ _INetSmtpMail _TCPIpToName
306" math
307syn keyword autoitFunction _Degree _MathCheckDiv _Max _Min _Radian
308" miscellaneous
309syn keyword autoitFunction _ChooseColor _ChooseFont _ClipPutFile _Iif
310 \ _IsPressed _MouseTrap _SendMessage _Singleton
311" process
312syn keyword autoitFunction _ProcessGetName _ProcessGetPriority _RunDOS
313" sound
314syn keyword autoitFunction _SoundClose _SoundLength _SoundOpen _SoundPause
315 \ _SoundPlay _SoundPos _SoundResume _SoundSeek _SoundStatus _SoundStop
316" sqlite
317syn 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
326syn keyword autoitFunction _HexToString _StringAddComma _StringBetween
327 \ _StringEncrypt _StringInsert _StringProper _StringRepeat
328 \ _StringReverse _StringToHex
329" visa
330syn keyword autoitFunction _viClose _viExecCommand _viFindGpib _viGpibBusReset
331 \ _viGTL _viOpen _viSetAttribute _viSetTimeout
332
333" read-only macros
334syn match autoitBuiltin "@AppData\(Common\)\=Dir"
335syn match autoitBuiltin "@AutoItExe"
336syn match autoitBuiltin "@AutoItPID"
337syn match autoitBuiltin "@AutoItVersion"
338syn match autoitBuiltin "@COM_EventObj"
339syn match autoitBuiltin "@CommonFilesDir"
340syn match autoitBuiltin "@Compiled"
341syn match autoitBuiltin "@ComputerName"
342syn match autoitBuiltin "@ComSpec"
343syn match autoitBuiltin "@CR\(LF\)\="
344syn match autoitBuiltin "@Desktop\(Common\)\=Dir"
345syn match autoitBuiltin "@DesktopDepth"
346syn match autoitBuiltin "@DesktopHeight"
347syn match autoitBuiltin "@DesktopRefresh"
348syn match autoitBuiltin "@DesktopWidth"
349syn match autoitBuiltin "@DocumentsCommonDir"
350syn match autoitBuiltin "@Error"
351syn match autoitBuiltin "@ExitCode"
352syn match autoitBuiltin "@ExitMethod"
353syn match autoitBuiltin "@Extended"
354syn match autoitBuiltin "@Favorites\(Common\)\=Dir"
355syn match autoitBuiltin "@GUI_CtrlId"
356syn match autoitBuiltin "@GUI_CtrlHandle"
357syn match autoitBuiltin "@GUI_DragId"
358syn match autoitBuiltin "@GUI_DragFile"
359syn match autoitBuiltin "@GUI_DropId"
360syn match autoitBuiltin "@GUI_WinHandle"
361syn match autoitBuiltin "@HomeDrive"
362syn match autoitBuiltin "@HomePath"
363syn match autoitBuiltin "@HomeShare"
364syn match autoitBuiltin "@HOUR"
365syn match autoitBuiltin "@HotKeyPressed"
366syn match autoitBuiltin "@InetGetActive"
367syn match autoitBuiltin "@InetGetBytesRead"
368syn match autoitBuiltin "@IPAddress[1234]"
369syn match autoitBuiltin "@KBLayout"
370syn match autoitBuiltin "@LF"
371syn match autoitBuiltin "@Logon\(DNS\)\=Domain"
372syn match autoitBuiltin "@LogonServer"
373syn match autoitBuiltin "@MDAY"
374syn match autoitBuiltin "@MIN"
375syn match autoitBuiltin "@MON"
376syn match autoitBuiltin "@MyDocumentsDir"
377syn match autoitBuiltin "@NumParams"
378syn match autoitBuiltin "@OSBuild"
379syn match autoitBuiltin "@OSLang"
380syn match autoitBuiltin "@OSServicePack"
381syn match autoitBuiltin "@OSTYPE"
382syn match autoitBuiltin "@OSVersion"
383syn match autoitBuiltin "@ProcessorArch"
384syn match autoitBuiltin "@ProgramFilesDir"
385syn match autoitBuiltin "@Programs\(Common\)\=Dir"
386syn match autoitBuiltin "@ScriptDir"
387syn match autoitBuiltin "@ScriptFullPath"
388syn match autoitBuiltin "@ScriptLineNumber"
389syn match autoitBuiltin "@ScriptName"
390syn match autoitBuiltin "@SEC"
391syn match autoitBuiltin "@StartMenu\(Common\)\=Dir"
392syn match autoitBuiltin "@Startup\(Common\)\=Dir"
393syn match autoitBuiltin "@SW_DISABLE"
394syn match autoitBuiltin "@SW_ENABLE"
395syn match autoitBuiltin "@SW_HIDE"
396syn match autoitBuiltin "@SW_LOCK"
397syn match autoitBuiltin "@SW_MAXIMIZE"
398syn match autoitBuiltin "@SW_MINIMIZE"
399syn match autoitBuiltin "@SW_RESTORE"
400syn match autoitBuiltin "@SW_SHOW"
401syn match autoitBuiltin "@SW_SHOWDEFAULT"
402syn match autoitBuiltin "@SW_SHOWMAXIMIZED"
403syn match autoitBuiltin "@SW_SHOWMINIMIZED"
404syn match autoitBuiltin "@SW_SHOWMINNOACTIVE"
405syn match autoitBuiltin "@SW_SHOWNA"
406syn match autoitBuiltin "@SW_SHOWNOACTIVATE"
407syn match autoitBuiltin "@SW_SHOWNORMAL"
408syn match autoitBuiltin "@SW_UNLOCK"
409syn match autoitBuiltin "@SystemDir"
410syn match autoitBuiltin "@TAB"
411syn match autoitBuiltin "@TempDir"
412syn match autoitBuiltin "@TRAY_ID"
413syn match autoitBuiltin "@TrayIconFlashing"
414syn match autoitBuiltin "@TrayIconVisible"
415syn match autoitBuiltin "@UserProfileDir"
416syn match autoitBuiltin "@UserName"
417syn match autoitBuiltin "@WDAY"
418syn match autoitBuiltin "@WindowsDir"
419syn match autoitBuiltin "@WorkingDir"
420syn match autoitBuiltin "@YDAY"
421syn match autoitBuiltin "@YEAR"
422
423"comments and commenting-out
424syn match autoitComment ";.*"
425"in this way also #ce alone will be highlighted
426syn match autoitCommDelimiter "^\s*#comments-start\>"
427syn match autoitCommDelimiter "^\s*#cs\>"
428syn match autoitCommDelimiter "^\s*#comments-end\>"
429syn match autoitCommDelimiter "^\s*#ce\>"
430syn 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
436syn match autoitOperator "[-+*/&^=<>][^-+*/&^=<>]"me=e-1
437"two characters operators
438syn match autoitOperator "==[^=]"me=e-1
439syn match autoitOperator "<>"
440syn match autoitOperator "<="
441syn match autoitOperator ">="
442syn match autoitOperator "+="
443syn match autoitOperator "-="
444syn match autoitOperator "*="
445syn match autoitOperator "/="
446syn match autoitOperator "&="
447syn keyword autoitOperator NOT AND OR
448
449syn match autoitParen "(\|)"
450syn match autoitBracket "\[\|\]"
451syn match autoitComma ","
452
453"numbers must come after operator '-'
454"decimal numbers without a dot
455syn match autoitNumber "-\=\<\d\+\>"
456"hexadecimal numbers without a dot
457syn match autoitNumber "-\=\<0x\x\+\>"
458"floating point number with dot (inside or at end)
459
460syn match autoitNumber "-\=\<\d\+\.\d*\>"
461"floating point number, starting with a dot
462syn match autoitNumber "-\=\<\.\d\+\>"
463"scientific notation numbers without dots
464syn match autoitNumber "-\=\<\d\+e[-+]\=\d\+\>"
465"scientific notation numbers with dots
466syn match autoitNumber "-\=\<\(\(\d\+\.\d*\)\|\(\.\d\+\)\)\(e[-+]\=\d\+\)\=\>"
467
468"string constants
469"we want the escaped quotes marked in red
470syn match autoitDoubledSingles +''+ contained
471syn match autoitDoubledDoubles +""+ contained
472"we want the continuation character marked in red
473"(also at the top level, not just contained)
474syn match autoitCont "_$"
475
476" send key list - must be defined before autoitStrings
477syn match autoitSend "{!}" contained
478syn match autoitSend "{#}" contained
479syn match autoitSend "{+}" contained
480syn match autoitSend "{^}" contained
481syn match autoitSend "{{}" contained
482syn match autoitSend "{}}" contained
483syn match autoitSend "{SPACE}" contained
484syn match autoitSend "{ENTER}" contained
485syn match autoitSend "{ALT}" contained
486syn match autoitSend "{BACKSPACE}" contained
487syn match autoitSend "{BS}" contained
488syn match autoitSend "{DELETE}" contained
489syn match autoitSend "{DEL}" contained
490syn match autoitSend "{UP}" contained
491syn match autoitSend "{DOWN}" contained
492syn match autoitSend "{LEFT}" contained
493syn match autoitSend "{RIGHT}" contained
494syn match autoitSend "{HOME}" contained
495syn match autoitSend "{END}" contained
496syn match autoitSend "{ESCAPE}" contained
497syn match autoitSend "{ESC}" contained
498syn match autoitSend "{INSERT}" contained
499syn match autoitSend "{INS}" contained
500syn match autoitSend "{PGUP}" contained
501syn match autoitSend "{PGDN}" contained
502syn match autoitSend "{F1}" contained
503syn match autoitSend "{F2}" contained
504syn match autoitSend "{F3}" contained
505syn match autoitSend "{F4}" contained
506syn match autoitSend "{F5}" contained
507syn match autoitSend "{F6}" contained
508syn match autoitSend "{F7}" contained
509syn match autoitSend "{F8}" contained
510syn match autoitSend "{F9}" contained
511syn match autoitSend "{F10}" contained
512syn match autoitSend "{F11}" contained
513syn match autoitSend "{F12}" contained
514syn match autoitSend "{TAB}" contained
515syn match autoitSend "{PRINTSCREEN}" contained
516syn match autoitSend "{LWIN}" contained
517syn match autoitSend "{RWIN}" contained
518syn match autoitSend "{NUMLOCK}" contained
519syn match autoitSend "{CTRLBREAK}" contained
520syn match autoitSend "{PAUSE}" contained
521syn match autoitSend "{CAPSLOCK}" contained
522syn match autoitSend "{NUMPAD0}" contained
523syn match autoitSend "{NUMPAD1}" contained
524syn match autoitSend "{NUMPAD2}" contained
525syn match autoitSend "{NUMPAD3}" contained
526syn match autoitSend "{NUMPAD4}" contained
527syn match autoitSend "{NUMPAD5}" contained
528syn match autoitSend "{NUMPAD6}" contained
529syn match autoitSend "{NUMPAD7}" contained
530syn match autoitSend "{NUMPAD8}" contained
531syn match autoitSend "{NUMPAD9}" contained
532syn match autoitSend "{NUMPADMULT}" contained
533syn match autoitSend "{NUMPADADD}" contained
534syn match autoitSend "{NUMPADSUB}" contained
535syn match autoitSend "{NUMPADDIV}" contained
536syn match autoitSend "{NUMPADDOT}" contained
537syn match autoitSend "{NUMPADENTER}" contained
538syn match autoitSend "{APPSKEY}" contained
539syn match autoitSend "{LALT}" contained
540syn match autoitSend "{RALT}" contained
541syn match autoitSend "{LCTRL}" contained
542syn match autoitSend "{RCTRL}" contained
543syn match autoitSend "{LSHIFT}" contained
544syn match autoitSend "{RSHIFT}" contained
545syn match autoitSend "{SLEEP}" contained
546syn match autoitSend "{ALTDOWN}" contained
547syn match autoitSend "{SHIFTDOWN}" contained
548syn match autoitSend "{CTRLDOWN}" contained
549syn match autoitSend "{LWINDOWN}" contained
550syn match autoitSend "{RWINDOWN}" contained
551syn match autoitSend "{ASC \d\d\d\d}" contained
552syn match autoitSend "{BROWSER_BACK}" contained
553syn match autoitSend "{BROWSER_FORWARD}" contained
554syn match autoitSend "{BROWSER_REFRESH}" contained
555syn match autoitSend "{BROWSER_STOP}" contained
556syn match autoitSend "{BROWSER_SEARCH}" contained
557syn match autoitSend "{BROWSER_FAVORITES}" contained
558syn match autoitSend "{BROWSER_HOME}" contained
559syn match autoitSend "{VOLUME_MUTE}" contained
560syn match autoitSend "{VOLUME_DOWN}" contained
561syn match autoitSend "{VOLUME_UP}" contained
562syn match autoitSend "{MEDIA_NEXT}" contained
563syn match autoitSend "{MEDIA_PREV}" contained
564syn match autoitSend "{MEDIA_STOP}" contained
565syn match autoitSend "{MEDIA_PLAY_PAUSE}" contained
566syn match autoitSend "{LAUNCH_MAIL}" contained
567syn match autoitSend "{LAUNCH_MEDIA}" contained
568syn match autoitSend "{LAUNCH_APP1}" contained
569syn 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
575syn region autoitString oneline contains=autoitSend matchgroup=autoitQuote start=+"+
576 \ end=+"+ end=+_\n\{1}.*"+
577 \ contains=autoitCont,autoitDoubledDoubles skip=+""+
578syn region autoitString oneline matchgroup=autoitQuote start=+'+
579 \ end=+'+ end=+_\n\{1}.*'+
580 \ contains=autoitCont,autoitDoubledSingles skip=+''+
581
582syn match autoitVarSelector "\$" contained display
583syn match autoitVariable "$\w\+" contains=autoitVarSelector
584
585" options - must be defined after autoitStrings
586syn match autoitOption "\([\"\']\)CaretCoordMode\1"
587syn match autoitOption "\([\"\']\)ColorMode\1"
588syn match autoitOption "\([\"\']\)ExpandEnvStrings\1"
589syn match autoitOption "\([\"\']\)ExpandVarStrings\1"
590syn match autoitOption "\([\"\']\)FtpBinaryMode\1"
591syn match autoitOption "\([\"\']\)GUICloseOnEsc\1"
592syn match autoitOption "\([\"\']\)GUICoordMode\1"
593syn match autoitOption "\([\"\']\)GUIDataSeparatorChar\1"
594syn match autoitOption "\([\"\']\)GUIOnEventMode\1"
595syn match autoitOption "\([\"\']\)GUIResizeMode\1"
596syn match autoitOption "\([\"\']\)GUIEventCompatibilityMode\1"
597syn match autoitOption "\([\"\']\)MouseClickDelay\1"
598syn match autoitOption "\([\"\']\)MouseClickDownDelay\1"
599syn match autoitOption "\([\"\']\)MouseClickDragDelay\1"
600syn match autoitOption "\([\"\']\)MouseCoordMode\1"
601syn match autoitOption "\([\"\']\)MustDeclareVars\1"
602syn match autoitOption "\([\"\']\)OnExitFunc\1"
603syn match autoitOption "\([\"\']\)PixelCoordMode\1"
604syn match autoitOption "\([\"\']\)RunErrorsFatal\1"
605syn match autoitOption "\([\"\']\)SendAttachMode\1"
606syn match autoitOption "\([\"\']\)SendCapslockMode\1"
607syn match autoitOption "\([\"\']\)SendKeyDelay\1"
608syn match autoitOption "\([\"\']\)SendKeyDownDelay\1"
609syn match autoitOption "\([\"\']\)TCPTimeout\1"
610syn match autoitOption "\([\"\']\)TrayAutoPause\1"
611syn match autoitOption "\([\"\']\)TrayIconDebug\1"
612syn match autoitOption "\([\"\']\)TrayIconHide\1"
613syn match autoitOption "\([\"\']\)TrayMenuMode\1"
614syn match autoitOption "\([\"\']\)TrayOnEventMode\1"
615syn match autoitOption "\([\"\']\)WinDetectHiddenText\1"
616syn match autoitOption "\([\"\']\)WinSearchChildren\1"
617syn match autoitOption "\([\"\']\)WinTextMatchMode\1"
618syn match autoitOption "\([\"\']\)WinTitleMatchMode\1"
619syn match autoitOption "\([\"\']\)WinWaitDelay\1"
620
621" styles - must be defined after autoitVariable
622" common
623syn match autoitStyle "\$WS_BORDER"
624syn match autoitStyle "\$WS_POPUP"
625syn match autoitStyle "\$WS_CAPTION"
626syn match autoitStyle "\$WS_CLIPCHILDREN"
627syn match autoitStyle "\$WS_CLIPSIBLINGS"
628syn match autoitStyle "\$WS_DISABLED"
629syn match autoitStyle "\$WS_DLGFRAME"
630syn match autoitStyle "\$WS_HSCROLL"
631syn match autoitStyle "\$WS_MAXIMIZE"
632syn match autoitStyle "\$WS_MAXIMIZEBOX"
633syn match autoitStyle "\$WS_MINIMIZE"
634syn match autoitStyle "\$WS_MINIMIZEBOX"
635syn match autoitStyle "\$WS_OVERLAPPED"
636syn match autoitStyle "\$WS_OVERLAPPEDWINDOW"
637syn match autoitStyle "\$WS_POPUPWINDOW"
638syn match autoitStyle "\$WS_SIZEBOX"
639syn match autoitStyle "\$WS_SYSMENU"
640syn match autoitStyle "\$WS_THICKFRAME"
641syn match autoitStyle "\$WS_VSCROLL"
642syn match autoitStyle "\$WS_VISIBLE"
643syn match autoitStyle "\$WS_CHILD"
644syn match autoitStyle "\$WS_GROUP"
645syn match autoitStyle "\$WS_TABSTOP"
646syn match autoitStyle "\$DS_MODALFRAME"
647syn match autoitStyle "\$DS_SETFOREGROUND"
648syn match autoitStyle "\$DS_CONTEXTHELP"
649" common extended
650syn match autoitStyle "\$WS_EX_ACCEPTFILES"
651syn match autoitStyle "\$WS_EX_APPWINDOW"
652syn match autoitStyle "\$WS_EX_CLIENTEDGE"
653syn match autoitStyle "\$WS_EX_CONTEXTHELP"
654syn match autoitStyle "\$WS_EX_DLGMODALFRAME"
655syn match autoitStyle "\$WS_EX_MDICHILD"
656syn match autoitStyle "\$WS_EX_OVERLAPPEDWINDOW"
657syn match autoitStyle "\$WS_EX_STATICEDGE"
658syn match autoitStyle "\$WS_EX_TOPMOST"
659syn match autoitStyle "\$WS_EX_TRANSPARENT"
660syn match autoitStyle "\$WS_EX_TOOLWINDOW"
661syn match autoitStyle "\$WS_EX_WINDOWEDGE"
662syn match autoitStyle "\$WS_EX_LAYERED"
663syn match autoitStyle "\$GUI_WS_EX_PARENTDRAG"
664" checkbox
665syn match autoitStyle "\$BS_3STATE"
666syn match autoitStyle "\$BS_AUTO3STATE"
667syn match autoitStyle "\$BS_AUTOCHECKBOX"
668syn match autoitStyle "\$BS_CHECKBOX"
669syn match autoitStyle "\$BS_LEFT"
670syn match autoitStyle "\$BS_PUSHLIKE"
671syn match autoitStyle "\$BS_RIGHT"
672syn match autoitStyle "\$BS_RIGHTBUTTON"
673syn match autoitStyle "\$BS_GROUPBOX"
674syn match autoitStyle "\$BS_AUTORADIOBUTTON"
675" push button
676syn match autoitStyle "\$BS_BOTTOM"
677syn match autoitStyle "\$BS_CENTER"
678syn match autoitStyle "\$BS_DEFPUSHBUTTON"
679syn match autoitStyle "\$BS_MULTILINE"
680syn match autoitStyle "\$BS_TOP"
681syn match autoitStyle "\$BS_VCENTER"
682syn match autoitStyle "\$BS_ICON"
683syn match autoitStyle "\$BS_BITMAP"
684syn match autoitStyle "\$BS_FLAT"
685" combo
686syn match autoitStyle "\$CBS_AUTOHSCROLL"
687syn match autoitStyle "\$CBS_DISABLENOSCROLL"
688syn match autoitStyle "\$CBS_DROPDOWN"
689syn match autoitStyle "\$CBS_DROPDOWNLIST"
690syn match autoitStyle "\$CBS_LOWERCASE"
691syn match autoitStyle "\$CBS_NOINTEGRALHEIGHT"
692syn match autoitStyle "\$CBS_OEMCONVERT"
693syn match autoitStyle "\$CBS_SIMPLE"
694syn match autoitStyle "\$CBS_SORT"
695syn match autoitStyle "\$CBS_UPPERCASE"
696" list
697syn match autoitStyle "\$LBS_DISABLENOSCROLL"
698syn match autoitStyle "\$LBS_NOINTEGRALHEIGHT"
699syn match autoitStyle "\$LBS_NOSEL"
700syn match autoitStyle "\$LBS_NOTIFY"
701syn match autoitStyle "\$LBS_SORT"
702syn match autoitStyle "\$LBS_STANDARD"
703syn match autoitStyle "\$LBS_USETABSTOPS"
704" edit/input
705syn match autoitStyle "\$ES_AUTOHSCROLL"
706syn match autoitStyle "\$ES_AUTOVSCROLL"
707syn match autoitStyle "\$ES_CENTER"
708syn match autoitStyle "\$ES_LOWERCASE"
709syn match autoitStyle "\$ES_NOHIDESEL"
710syn match autoitStyle "\$ES_NUMBER"
711syn match autoitStyle "\$ES_OEMCONVERT"
712syn match autoitStyle "\$ES_MULTILINE"
713syn match autoitStyle "\$ES_PASSWORD"
714syn match autoitStyle "\$ES_READONLY"
715syn match autoitStyle "\$ES_RIGHT"
716syn match autoitStyle "\$ES_UPPERCASE"
717syn match autoitStyle "\$ES_WANTRETURN"
718" progress bar
719syn match autoitStyle "\$PBS_SMOOTH"
720syn match autoitStyle "\$PBS_VERTICAL"
721" up-down
722syn match autoitStyle "\$UDS_ALIGNLEFT"
723syn match autoitStyle "\$UDS_ALIGNRIGHT"
724syn match autoitStyle "\$UDS_ARROWKEYS"
725syn match autoitStyle "\$UDS_HORZ"
726syn match autoitStyle "\$UDS_NOTHOUSANDS"
727syn match autoitStyle "\$UDS_WRAP"
728" label/static
729syn match autoitStyle "\$SS_BLACKFRAME"
730syn match autoitStyle "\$SS_BLACKRECT"
731syn match autoitStyle "\$SS_CENTER"
732syn match autoitStyle "\$SS_CENTERIMAGE"
733syn match autoitStyle "\$SS_ETCHEDFRAME"
734syn match autoitStyle "\$SS_ETCHEDHORZ"
735syn match autoitStyle "\$SS_ETCHEDVERT"
736syn match autoitStyle "\$SS_GRAYFRAME"
737syn match autoitStyle "\$SS_GRAYRECT"
738syn match autoitStyle "\$SS_LEFT"
739syn match autoitStyle "\$SS_LEFTNOWORDWRAP"
740syn match autoitStyle "\$SS_NOPREFIX"
741syn match autoitStyle "\$SS_NOTIFY"
742syn match autoitStyle "\$SS_RIGHT"
743syn match autoitStyle "\$SS_RIGHTJUST"
744syn match autoitStyle "\$SS_SIMPLE"
745syn match autoitStyle "\$SS_SUNKEN"
746syn match autoitStyle "\$SS_WHITEFRAME"
747syn match autoitStyle "\$SS_WHITERECT"
748" tab
749syn match autoitStyle "\$TCS_SCROLLOPPOSITE"
750syn match autoitStyle "\$TCS_BOTTOM"
751syn match autoitStyle "\$TCS_RIGHT"
752syn match autoitStyle "\$TCS_MULTISELECT"
753syn match autoitStyle "\$TCS_FLATBUTTONS"
754syn match autoitStyle "\$TCS_FORCEICONLEFT"
755syn match autoitStyle "\$TCS_FORCELABELLEFT"
756syn match autoitStyle "\$TCS_HOTTRACK"
757syn match autoitStyle "\$TCS_VERTICAL"
758syn match autoitStyle "\$TCS_TABS"
759syn match autoitStyle "\$TCS_BUTTONS"
760syn match autoitStyle "\$TCS_SINGLELINE"
761syn match autoitStyle "\$TCS_MULTILINE"
762syn match autoitStyle "\$TCS_RIGHTJUSTIFY"
763syn match autoitStyle "\$TCS_FIXEDWIDTH"
764syn match autoitStyle "\$TCS_RAGGEDRIGHT"
765syn match autoitStyle "\$TCS_FOCUSONBUTTONDOWN"
766syn match autoitStyle "\$TCS_OWNERDRAWFIXED"
767syn match autoitStyle "\$TCS_TOOLTIPS"
768syn match autoitStyle "\$TCS_FOCUSNEVER"
769" avi clip
770syn match autoitStyle "\$ACS_AUTOPLAY"
771syn match autoitStyle "\$ACS_CENTER"
772syn match autoitStyle "\$ACS_TRANSPARENT"
773syn match autoitStyle "\$ACS_NONTRANSPARENT"
774" date
775syn match autoitStyle "\$DTS_UPDOWN"
776syn match autoitStyle "\$DTS_SHOWNONE"
777syn match autoitStyle "\$DTS_LONGDATEFORMAT"
778syn match autoitStyle "\$DTS_TIMEFORMAT"
779syn match autoitStyle "\$DTS_RIGHTALIGN"
780syn match autoitStyle "\$DTS_SHORTDATEFORMAT"
781" monthcal
782syn match autoitStyle "\$MCS_NOTODAY"
783syn match autoitStyle "\$MCS_NOTODAYCIRCLE"
784syn match autoitStyle "\$MCS_WEEKNUMBERS"
785" treeview
786syn match autoitStyle "\$TVS_HASBUTTONS"
787syn match autoitStyle "\$TVS_HASLINES"
788syn match autoitStyle "\$TVS_LINESATROOT"
789syn match autoitStyle "\$TVS_DISABLEDRAGDROP"
790syn match autoitStyle "\$TVS_SHOWSELALWAYS"
791syn match autoitStyle "\$TVS_RTLREADING"
792syn match autoitStyle "\$TVS_NOTOOLTIPS"
793syn match autoitStyle "\$TVS_CHECKBOXES"
794syn match autoitStyle "\$TVS_TRACKSELECT"
795syn match autoitStyle "\$TVS_SINGLEEXPAND"
796syn match autoitStyle "\$TVS_FULLROWSELECT"
797syn match autoitStyle "\$TVS_NOSCROLL"
798syn match autoitStyle "\$TVS_NONEVENHEIGHT"
799" slider
800syn match autoitStyle "\$TBS_AUTOTICKS"
801syn match autoitStyle "\$TBS_BOTH"
802syn match autoitStyle "\$TBS_BOTTOM"
803syn match autoitStyle "\$TBS_HORZ"
804syn match autoitStyle "\$TBS_VERT"
805syn match autoitStyle "\$TBS_NOTHUMB"
806syn match autoitStyle "\$TBS_NOTICKS"
807syn match autoitStyle "\$TBS_LEFT"
808syn match autoitStyle "\$TBS_RIGHT"
809syn match autoitStyle "\$TBS_TOP"
810" listview
811syn match autoitStyle "\$LVS_ICON"
812syn match autoitStyle "\$LVS_REPORT"
813syn match autoitStyle "\$LVS_SMALLICON"
814syn match autoitStyle "\$LVS_LIST"
815syn match autoitStyle "\$LVS_EDITLABELS"
816syn match autoitStyle "\$LVS_NOCOLUMNHEADER"
817syn match autoitStyle "\$LVS_NOSORTHEADER"
818syn match autoitStyle "\$LVS_SINGLESEL"
819syn match autoitStyle "\$LVS_SHOWSELALWAYS"
820syn match autoitStyle "\$LVS_SORTASCENDING"
821syn match autoitStyle "\$LVS_SORTDESCENDING"
822" listview extended
823syn match autoitStyle "\$LVS_EX_FULLROWSELECT"
824syn match autoitStyle "\$LVS_EX_GRIDLINES"
825syn match autoitStyle "\$LVS_EX_HEADERDRAGDROP"
826syn match autoitStyle "\$LVS_EX_TRACKSELECT"
827syn match autoitStyle "\$LVS_EX_CHECKBOXES"
828syn match autoitStyle "\$LVS_EX_BORDERSELECT"
829syn match autoitStyle "\$LVS_EX_DOUBLEBUFFER"
830syn match autoitStyle "\$LVS_EX_FLATSB"
831syn match autoitStyle "\$LVS_EX_MULTIWORKAREAS"
832syn match autoitStyle "\$LVS_EX_SNAPTOGRID"
833syn match autoitStyle "\$LVS_EX_SUBITEMIMAGES"
834
835" constants - must be defined after autoitVariable - excludes styles
836" constants - autoit options
837syn match autoitConst "\$OPT_COORDSRELATIVE"
838syn match autoitConst "\$OPT_COORDSABSOLUTE"
839syn match autoitConst "\$OPT_COORDSCLIENT"
840syn match autoitConst "\$OPT_ERRORSILENT"
841syn match autoitConst "\$OPT_ERRORFATAL"
842syn match autoitConst "\$OPT_CAPSNOSTORE"
843syn match autoitConst "\$OPT_CAPSSTORE"
844syn match autoitConst "\$OPT_MATCHSTART"
845syn match autoitConst "\$OPT_MATCHANY"
846syn match autoitConst "\$OPT_MATCHEXACT"
847syn match autoitConst "\$OPT_MATCHADVANCED"
848" constants - file
849syn match autoitConst "\$FC_NOOVERWRITE"
850syn match autoitConst "\$FC_OVERWRITE"
851syn match autoitConst "\$FT_MODIFIED"
852syn match autoitConst "\$FT_CREATED"
853syn match autoitConst "\$FT_ACCESSED"
854syn match autoitConst "\$FO_READ"
855syn match autoitConst "\$FO_APPEND"
856syn match autoitConst "\$FO_OVERWRITE"
857syn match autoitConst "\$EOF"
858syn match autoitConst "\$FD_FILEMUSTEXIST"
859syn match autoitConst "\$FD_PATHMUSTEXIST"
860syn match autoitConst "\$FD_MULTISELECT"
861syn match autoitConst "\$FD_PROMPTCREATENEW"
862syn match autoitConst "\$FD_PROMPTOVERWRITE"
863" constants - keyboard
864syn match autoitConst "\$KB_SENDSPECIAL"
865syn match autoitConst "\$KB_SENDRAW"
866syn match autoitConst "\$KB_CAPSOFF"
867syn match autoitConst "\$KB_CAPSON"
868" constants - message box
869syn match autoitConst "\$MB_OK"
870syn match autoitConst "\$MB_OKCANCEL"
871syn match autoitConst "\$MB_ABORTRETRYIGNORE"
872syn match autoitConst "\$MB_YESNOCANCEL"
873syn match autoitConst "\$MB_YESNO"
874syn match autoitConst "\$MB_RETRYCANCEL"
875syn match autoitConst "\$MB_ICONHAND"
876syn match autoitConst "\$MB_ICONQUESTION"
877syn match autoitConst "\$MB_ICONEXCLAMATION"
878syn match autoitConst "\$MB_ICONASTERISK"
879syn match autoitConst "\$MB_DEFBUTTON1"
880syn match autoitConst "\$MB_DEFBUTTON2"
881syn match autoitConst "\$MB_DEFBUTTON3"
882syn match autoitConst "\$MB_APPLMODAL"
883syn match autoitConst "\$MB_SYSTEMMODAL"
884syn match autoitConst "\$MB_TASKMODAL"
885syn match autoitConst "\$MB_TOPMOST"
886syn match autoitConst "\$MB_RIGHTJUSTIFIED"
887syn match autoitConst "\$IDTIMEOUT"
888syn match autoitConst "\$IDOK"
889syn match autoitConst "\$IDCANCEL"
890syn match autoitConst "\$IDABORT"
891syn match autoitConst "\$IDRETRY"
892syn match autoitConst "\$IDIGNORE"
893syn match autoitConst "\$IDYES"
894syn match autoitConst "\$IDNO"
895syn match autoitConst "\$IDTRYAGAIN"
896syn match autoitConst "\$IDCONTINUE"
897" constants - progress and splash
898syn match autoitConst "\$DLG_NOTITLE"
899syn match autoitConst "\$DLG_NOTONTOP"
900syn match autoitConst "\$DLG_TEXTLEFT"
901syn match autoitConst "\$DLG_TEXTRIGHT"
902syn match autoitConst "\$DLG_MOVEABLE"
903syn match autoitConst "\$DLG_TEXTVCENTER"
904" constants - tray tip
905syn match autoitConst "\$TIP_ICONNONE"
906syn match autoitConst "\$TIP_ICONASTERISK"
907syn match autoitConst "\$TIP_ICONEXCLAMATION"
908syn match autoitConst "\$TIP_ICONHAND"
909syn match autoitConst "\$TIP_NOSOUND"
910" constants - mouse
911syn match autoitConst "\$IDC_UNKNOWN"
912syn match autoitConst "\$IDC_APPSTARTING"
913syn match autoitConst "\$IDC_ARROW"
914syn match autoitConst "\$IDC_CROSS"
915syn match autoitConst "\$IDC_HELP"
916syn match autoitConst "\$IDC_IBEAM"
917syn match autoitConst "\$IDC_ICON"
918syn match autoitConst "\$IDC_NO"
919syn match autoitConst "\$IDC_SIZE"
920syn match autoitConst "\$IDC_SIZEALL"
921syn match autoitConst "\$IDC_SIZENESW"
922syn match autoitConst "\$IDC_SIZENS"
923syn match autoitConst "\$IDC_SIZENWSE"
924syn match autoitConst "\$IDC_SIZEWE"
925syn match autoitConst "\$IDC_UPARROW"
926syn match autoitConst "\$IDC_WAIT"
927" constants - process
928syn match autoitConst "\$SD_LOGOFF"
929syn match autoitConst "\$SD_SHUTDOWN"
930syn match autoitConst "\$SD_REBOOT"
931syn match autoitConst "\$SD_FORCE"
932syn match autoitConst "\$SD_POWERDOWN"
933" constants - string
934syn match autoitConst "\$STR_NOCASESENSE"
935syn match autoitConst "\$STR_CASESENSE"
Bram Moolenaar519cc552021-11-16 19:18:26 +0000936syn match autoitConst "\$STR_STRIPLEADING"
Bram Moolenaar9964e462007-05-05 17:54:07 +0000937syn match autoitConst "\$STR_STRIPTRAILING"
938syn match autoitConst "\$STR_STRIPSPACES"
939syn match autoitConst "\$STR_STRIPALL"
940" constants - tray
941syn match autoitConst "\$TRAY_ITEM_EXIT"
942syn match autoitConst "\$TRAY_ITEM_PAUSE"
943syn match autoitConst "\$TRAY_ITEM_FIRST"
944syn match autoitConst "\$TRAY_CHECKED"
945syn match autoitConst "\$TRAY_UNCHECKED"
946syn match autoitConst "\$TRAY_ENABLE"
947syn match autoitConst "\$TRAY_DISABLE"
948syn match autoitConst "\$TRAY_FOCUS"
949syn match autoitConst "\$TRAY_DEFAULT"
950syn match autoitConst "\$TRAY_EVENT_SHOWICON"
951syn match autoitConst "\$TRAY_EVENT_HIDEICON"
952syn match autoitConst "\$TRAY_EVENT_FLASHICON"
953syn match autoitConst "\$TRAY_EVENT_NOFLASHICON"
954syn match autoitConst "\$TRAY_EVENT_PRIMARYDOWN"
955syn match autoitConst "\$TRAY_EVENT_PRIMARYUP"
956syn match autoitConst "\$TRAY_EVENT_SECONDARYDOWN"
957syn match autoitConst "\$TRAY_EVENT_SECONDARYUP"
958syn match autoitConst "\$TRAY_EVENT_MOUSEOVER"
959syn match autoitConst "\$TRAY_EVENT_MOUSEOUT"
960syn match autoitConst "\$TRAY_EVENT_PRIMARYDOUBLE"
961syn match autoitConst "\$TRAY_EVENT_SECONDARYDOUBLE"
962" constants - stdio
963syn match autoitConst "\$STDIN_CHILD"
964syn match autoitConst "\$STDOUT_CHILD"
965syn match autoitConst "\$STDERR_CHILD"
966" constants - color
967syn match autoitConst "\$COLOR_BLACK"
968syn match autoitConst "\$COLOR_SILVER"
969syn match autoitConst "\$COLOR_GRAY"
970syn match autoitConst "\$COLOR_WHITE"
971syn match autoitConst "\$COLOR_MAROON"
972syn match autoitConst "\$COLOR_RED"
973syn match autoitConst "\$COLOR_PURPLE"
974syn match autoitConst "\$COLOR_FUCHSIA"
975syn match autoitConst "\$COLOR_GREEN"
976syn match autoitConst "\$COLOR_LIME"
977syn match autoitConst "\$COLOR_OLIVE"
978syn match autoitConst "\$COLOR_YELLOW"
979syn match autoitConst "\$COLOR_NAVY"
980syn match autoitConst "\$COLOR_BLUE"
981syn match autoitConst "\$COLOR_TEAL"
982syn match autoitConst "\$COLOR_AQUA"
983" constants - reg value type
984syn match autoitConst "\$REG_NONE"
985syn match autoitConst "\$REG_SZ"
986syn match autoitConst "\$REG_EXPAND_SZ"
987syn match autoitConst "\$REG_BINARY"
988syn match autoitConst "\$REG_DWORD"
989syn match autoitConst "\$REG_DWORD_BIG_ENDIAN"
990syn match autoitConst "\$REG_LINK"
991syn match autoitConst "\$REG_MULTI_SZ"
992syn match autoitConst "\$REG_RESOURCE_LIST"
993syn match autoitConst "\$REG_FULL_RESOURCE_DESCRIPTOR"
994syn match autoitConst "\$REG_RESOURCE_REQUIREMENTS_LIST"
995" guiconstants - events and messages
996syn match autoitConst "\$GUI_EVENT_CLOSE"
997syn match autoitConst "\$GUI_EVENT_MINIMIZE"
998syn match autoitConst "\$GUI_EVENT_RESTORE"
999syn match autoitConst "\$GUI_EVENT_MAXIMIZE"
1000syn match autoitConst "\$GUI_EVENT_PRIMARYDOWN"
1001syn match autoitConst "\$GUI_EVENT_PRIMARYUP"
1002syn match autoitConst "\$GUI_EVENT_SECONDARYDOWN"
1003syn match autoitConst "\$GUI_EVENT_SECONDARYUP"
1004syn match autoitConst "\$GUI_EVENT_MOUSEMOVE"
1005syn match autoitConst "\$GUI_EVENT_RESIZED"
1006syn match autoitConst "\$GUI_EVENT_DROPPED"
1007syn match autoitConst "\$GUI_RUNDEFMSG"
1008" guiconstants - state
1009syn match autoitConst "\$GUI_AVISTOP"
1010syn match autoitConst "\$GUI_AVISTART"
1011syn match autoitConst "\$GUI_AVICLOSE"
1012syn match autoitConst "\$GUI_CHECKED"
1013syn match autoitConst "\$GUI_INDETERMINATE"
1014syn match autoitConst "\$GUI_UNCHECKED"
1015syn match autoitConst "\$GUI_DROPACCEPTED"
1016syn match autoitConst "\$GUI_DROPNOTACCEPTED"
1017syn match autoitConst "\$GUI_ACCEPTFILES"
1018syn match autoitConst "\$GUI_SHOW"
1019syn match autoitConst "\$GUI_HIDE"
1020syn match autoitConst "\$GUI_ENABLE"
1021syn match autoitConst "\$GUI_DISABLE"
1022syn match autoitConst "\$GUI_FOCUS"
1023syn match autoitConst "\$GUI_NOFOCUS"
1024syn match autoitConst "\$GUI_DEFBUTTON"
1025syn match autoitConst "\$GUI_EXPAND"
1026syn match autoitConst "\$GUI_ONTOP"
1027" guiconstants - font
1028syn match autoitConst "\$GUI_FONTITALIC"
1029syn match autoitConst "\$GUI_FONTUNDER"
1030syn match autoitConst "\$GUI_FONTSTRIKE"
1031" guiconstants - resizing
1032syn match autoitConst "\$GUI_DOCKAUTO"
1033syn match autoitConst "\$GUI_DOCKLEFT"
1034syn match autoitConst "\$GUI_DOCKRIGHT"
1035syn match autoitConst "\$GUI_DOCKHCENTER"
1036syn match autoitConst "\$GUI_DOCKTOP"
1037syn match autoitConst "\$GUI_DOCKBOTTOM"
1038syn match autoitConst "\$GUI_DOCKVCENTER"
1039syn match autoitConst "\$GUI_DOCKWIDTH"
1040syn match autoitConst "\$GUI_DOCKHEIGHT"
1041syn match autoitConst "\$GUI_DOCKSIZE"
1042syn match autoitConst "\$GUI_DOCKMENUBAR"
1043syn match autoitConst "\$GUI_DOCKSTATEBAR"
1044syn match autoitConst "\$GUI_DOCKALL"
1045syn match autoitConst "\$GUI_DOCKBORDERS"
1046" guiconstants - graphic
1047syn match autoitConst "\$GUI_GR_CLOSE"
1048syn match autoitConst "\$GUI_GR_LINE"
1049syn match autoitConst "\$GUI_GR_BEZIER"
1050syn match autoitConst "\$GUI_GR_MOVE"
1051syn match autoitConst "\$GUI_GR_COLOR"
1052syn match autoitConst "\$GUI_GR_RECT"
1053syn match autoitConst "\$GUI_GR_ELLIPSE"
1054syn match autoitConst "\$GUI_GR_PIE"
1055syn match autoitConst "\$GUI_GR_DOT"
1056syn match autoitConst "\$GUI_GR_PIXEL"
1057syn match autoitConst "\$GUI_GR_HINT"
1058syn match autoitConst "\$GUI_GR_REFRESH"
1059syn match autoitConst "\$GUI_GR_PENSIZE"
1060syn match autoitConst "\$GUI_GR_NOBKCOLOR"
1061" guiconstants - control default styles
1062syn match autoitConst "\$GUI_SS_DEFAULT_AVI"
1063syn match autoitConst "\$GUI_SS_DEFAULT_BUTTON"
1064syn match autoitConst "\$GUI_SS_DEFAULT_CHECKBOX"
1065syn match autoitConst "\$GUI_SS_DEFAULT_COMBO"
1066syn match autoitConst "\$GUI_SS_DEFAULT_DATE"
1067syn match autoitConst "\$GUI_SS_DEFAULT_EDIT"
1068syn match autoitConst "\$GUI_SS_DEFAULT_GRAPHIC"
1069syn match autoitConst "\$GUI_SS_DEFAULT_GROUP"
1070syn match autoitConst "\$GUI_SS_DEFAULT_ICON"
1071syn match autoitConst "\$GUI_SS_DEFAULT_INPUT"
1072syn match autoitConst "\$GUI_SS_DEFAULT_LABEL"
1073syn match autoitConst "\$GUI_SS_DEFAULT_LIST"
1074syn match autoitConst "\$GUI_SS_DEFAULT_LISTVIEW"
1075syn match autoitConst "\$GUI_SS_DEFAULT_MONTHCAL"
1076syn match autoitConst "\$GUI_SS_DEFAULT_PIC"
1077syn match autoitConst "\$GUI_SS_DEFAULT_PROGRESS"
1078syn match autoitConst "\$GUI_SS_DEFAULT_RADIO"
1079syn match autoitConst "\$GUI_SS_DEFAULT_SLIDER"
1080syn match autoitConst "\$GUI_SS_DEFAULT_TAB"
1081syn match autoitConst "\$GUI_SS_DEFAULT_TREEVIEW"
1082syn match autoitConst "\$GUI_SS_DEFAULT_UPDOWN"
1083syn match autoitConst "\$GUI_SS_DEFAULT_GUI"
1084" guiconstants - background color special flags
1085syn match autoitConst "\$GUI_BKCOLOR_DEFAULT"
1086syn match autoitConst "\$GUI_BKCOLOR_LV_ALTERNATE"
1087syn match autoitConst "\$GUI_BKCOLOR_TRANSPARENT"
1088
1089" registry constants
1090syn match autoitConst "\([\"\']\)REG_BINARY\1"
1091syn match autoitConst "\([\"\']\)REG_SZ\1"
1092syn match autoitConst "\([\"\']\)REG_MULTI_SZ\1"
1093syn match autoitConst "\([\"\']\)REG_EXPAND_SZ\1"
1094syn match autoitConst "\([\"\']\)REG_DWORD\1"
1095
1096" Define the default highlighting.
1097" Unused colors: Underlined, Ignore, Error, Todo
1098hi def link autoitFunction Statement " yellow/yellow
1099hi def link autoitKeyword Statement
1100hi def link autoitOperator Operator
1101hi def link autoitVarSelector Operator
1102hi def link autoitComment Comment " cyan/blue
1103hi def link autoitParen Comment
1104hi def link autoitComma Comment
1105hi def link autoitBracket Comment
1106hi def link autoitNumber Constant " magenta/red
1107hi def link autoitString Constant
1108hi def link autoitQuote Constant
1109hi def link autoitIncluded Constant
1110hi def link autoitCont Special " red/orange
1111hi def link autoitDoubledSingles Special
1112hi def link autoitDoubledDoubles Special
1113hi def link autoitCommDelimiter PreProc " blue/magenta
1114hi def link autoitInclude PreProc
1115hi def link autoitVariable Identifier " cyan/cyan
1116hi def link autoitBuiltin Type " green/green
1117hi def link autoitOption Type
1118hi def link autoitStyle Type
1119hi def link autoitConst Type
1120hi def link autoitSend Type
Bram Moolenaar9a7224b2012-04-30 15:56:52 +02001121
Bram Moolenaar9964e462007-05-05 17:54:07 +00001122syn sync minlines=50
Bram Moolenaar9a7224b2012-04-30 15:56:52 +02001123
1124let &cpo = s:keepcpo
1125unlet s:keepcpo