summaryrefslogtreecommitdiff
path: root/runtime/syntax/autoit.vim
blob: 6b6048aadc8dc4c0df3b8b6930671a8f3f925f10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
" Vim syntax file
"
" Language:	AutoIt v3 (http://www.autoitscript.com/autoit3/)
" Maintainer:	Jared Breland <jbreland@legroom.net>
" Authored By:	Riccardo Casini <ric@libero.it>
" Script URL:	http://www.vim.org/scripts/script.php?script_id=1239
" ChangeLog:	Please visit the script URL for detailed change information
" 		Included change from #970.

" Quit when a syntax file was already loaded.
if exists("b:current_syntax")
  finish
endif
let s:keepcpo= &cpo
set cpo&vim

let b:current_syntax = "autoit"

" AutoIt is not case dependent
syn case ignore

" Definitions for AutoIt reserved keywords
syn keyword autoitKeyword Default False True
syn keyword autoitKeyword Const Dim Global Local ReDim
syn keyword autoitKeyword If Else ElseIf Then EndIf
syn keyword autoitKeyword Select Switch Case EndSelect EndSwitch
syn keyword autoitKeyword Enum For In To Step Next
syn keyword autoitKeyword With While EndWith Wend Do Until
syn keyword autoitKeyword ContinueCase ContinueLoop ExitLoop Exit

" inside script inclusion and global options
syn match autoitIncluded display contained "<[^>]*>"
syn match autoitInclude	display "^\s*#\s*include\>\s*["<]"
	\ contains=autoitIncluded,autoitString
syn match autoitInclude "^\s*#include-once\>"
syn match autoitInclude "^\s*#NoTrayIcon\>"
syn match autoitInclude "^\s*#RequireAdmin\>"

" user-defined functions
syn keyword autoitKeyword Func ByRef EndFunc Return OnAutoItStart OnAutoItExit

" built-in functions
" environment management
syn keyword autoitFunction ClipGet ClipPut EnvGet EnvSet EnvUpdate MemGetStats
" file, directory, and disk management
syn keyword autoitFunction ConsoleRead ConsoleWrite ConsoleWriteError
syn keyword autoitFunction DirCopy DirCreate DirGetSize DirMove DirRemove
syn keyword autoitFunction DriveGetDrive DriveGetFileSystem DriveGetLabel
	\ DriveGetSerial DriveGetType DriveMapAdd DriveMapDel DriveMapGet
	\ DriveSetLabel DriveSpaceFree DriveSpaceTotal DriveStatus
syn keyword autoitFunction FileChangeDir FileClose FileCopy FileCreateNTFSLink
	\ FileCreateShortcut FileDelete FileExists FileFindFirstFile
	\ FileFindNextFile FileGetAttrib FileGetLongName FileGetShortcut
	\ FileGetShortName FileGetSize FileGetTime FileGetVersion FileInstall
	\ FileMove FileOpen FileOpenDialog FileRead FileReadLine FileRecycle
	\ FileRecycleEmpty FileSaveDialog FileSelectFolder FileSetAttrib
	\ FileSetTime FileWrite FileWriteLine
syn keyword autoitFunction IniDelete IniRead IniReadSection IniReadSectionNames
	\ IniRenameSection IniWrite IniWriteSection
syn keyword autoitFunction StderrRead StdinWrite StdoutRead
" graphic and sound
syn keyword autoitFunction Beep PixelChecksum PixelGetColor PixelSearch
	\ SoundPlay SoundSetWaveVolume
" gui reference
syn keyword autoitFunction GUICreate GUIDelete GUICtrlGetHandle GUICtrlGetState
	\ GUICtrlRead GUICtrlRecvMsg GUICtrlSendMsg GUICtrlSendToDummy
	\ GUIGetCursorInfo GUIGetMsg GUIRegisterMsg GUIStartGroup GUISwitch
syn keyword autoitFunction GUICtrlCreateAvi GUICtrlCreateButton
	\ GUICtrlCreateCheckbox GUICtrlCreateCombo GUICtrlCreateContextMenu
	\ GUICtrlCreateDate GUICtrlCreateDummy GUICtrlCreateEdit
	\ GUICtrlCreateGraphic GUICtrlCreateGroup GUICtrlCreateIcon
	\ GUICtrlCreateInput GUICtrlCreateLabel GUICtrlCreateList
	\ GUICtrlCreateListView GUICtrlCreateListViewItem GUICtrlCreateMenu
	\ GUICtrlCreateMenuItem GUICtrlCreateMonthCal GUICtrlCreateObj
	\ GUICtrlCreatePic GUICtrlCreateProgress GUICtrlCreateRadio
	\ GUICtrlCreateSlider GUICtrlCreateTab GUICtrlCreateTabItem
	\ GUICtrlCreateTreeView GUICtrlCreateTreeViewItem
	\ GUICtrlCreateUpDown GUICtrlDelete
syn keyword autoitFunction GUICtrlRegisterListViewSort GUICtrlSetBkColor
	\ GUICtrlSetColor GUICtrlSetCursor GUICtrlSetData GUICtrlSetFont
	\ GUICtrlSetGraphic GUICtrlSetImage GUICtrlSetLimit GUICtrlSetOnEvent
	\ GUICtrlSetPos GUICtrlSetResizing GUICtrlSetState GUICtrlSetStyle
	\ GUICtrlSetTip
syn keyword autoitFunction GUISetBkColor GUISetCoord GUISetCursor GUISetFont
	\ GUISetHelp GUISetIcon GUISetOnEvent GUISetState
" keyboard control
syn keyword autoitFunction HotKeySet Send
" math
syn keyword autoitFunction Abs ACos ASin ATan BitAND BitNOT BitOR BitRotate
	\ BitShift BitXOR Cos Ceiling Exp Floor Log Mod Random Round Sin Sqrt
	\ SRandom Tan
" message boxes and dialogs
syn keyword autoitFunction InputBox MsgBox ProgressOff ProgressOn ProgressSet
	\ SplashImageOn SplashOff SplashTextOn ToolTip
" miscellaneous
syn keyword autoitFunction AdlibDisable AdlibEnable AutoItSetOption
	\ AutoItWinGetTitle AutoItWinSetTitle BlockInput Break Call CDTray
	\ Execute Opt SetError SetExtended
" mouse control
syn keyword autoitFunction MouseClick MouseClickDrag MouseDown MouseGetCursor
	\ MouseGetPos MouseMove MouseUp MouseWheel
" network
syn keyword autoitFunction FtpSetProxy HttpSetProxy InetGet InetGetSize Ping
	\ TCPAccept TCPCloseSocket TCPConnect TCPListen TCPNameToIp TCPRecv
	\ TCPSend TCPShutDown TCPStartup UDPBind UDPCloseSocket UDPOpen UDPRecv
	\ UDPSend UDPShutdown UDPStartup
" obj/com reference
syn keyword autoitFunction ObjCreate ObjEvent ObjGet ObjName
" process management
syn keyword autoitFunction DllCall DllClose DllOpen DllStructCreate
	\ DllStructGetData DllStructGetPtr DllStructGetSize DllStructSetData
	\ ProcessClose ProcessExists ProcessSetPriority ProcessList ProcessWait
	\ ProcessWaitClose Run RunAsSet RunWait ShellExecute ShellExecuteWait
	\ Shutdown
	" removed from 3.2.0 docs - PluginClose PluginOpen
" registry management
syn keyword autoitFunction RegDelete RegEnumKey RegEnumVal RegRead RegWrite
" string management
syn keyword autoitFunction StringAddCR StringFormat StringInStr StringIsAlNum
	\ StringIsAlpha StringIsASCII StringIsDigit StringIsFloat StringIsInt
	\ StringIsLower StringIsSpace StringIsUpper StringIsXDigit StringLeft
	\ StringLen StringLower StringMid StringRegExp StringRegExpReplace
	\ StringReplace StringRight StringSplit StringStripCR StringStripWS
	\ StringTrimLeft StringTrimRight StringUpper
" timer and delay
syn keyword autoitFunction Sleep TimerInit TimerDiff
" tray
syn keyword autoitFunction TrayCreateItem TrayCreateMenu TrayItemDelete
	\ TrayItemGetHandle TrayItemGetState TrayItemGetText TrayItemSetOnEvent
	\ TrayItemSetState TrayItemSetText TrayGetMsg TraySetClick TraySetIcon
	\ TraySetOnEvent TraySetPauseIcon TraySetState TraySetToolTip TrayTip
" variables and conversions
syn keyword autoitFunction Asc Assign Binary Chr Dec Eval Hex HWnd Int IsAdmin
	\ IsArray IsBinaryString IsBool IsDeclared IsDllStruct IsFloat IsHWnd
	\ IsInt IsKeyword IsNumber IsObj IsString Number String UBound
" window management
syn keyword autoitFunction WinActivate WinActive WinClose WinExists WinFlash
	\ WinGetCaretPos WinGetClassList WinGetClientSize WinGetHandle WinGetPos
	\ WinGetProcess WinGetState WinGetText WinGetTitle WinKill WinList
	\ WinMenuSelectItem WinMinimizeAll WinMinimizeAllUndo WinMove
	\ WinSetOnTop WinSetState WinSetTitle WinSetTrans WinWait WinWaitActive
	\ WinWaitClose WinWaitNotActive
syn keyword autoitFunction ControlClick ControlCommand ControlDisable
	\ ControlEnable ControlFocus ControlGetFocus ControlGetHandle
	\ ControlGetPos ControlGetText ControlHide ControlListView ControlMove
	\ ControlSend ControlSetText ControlShow StatusBarGetText

" user defined functions
" array
syn keyword autoitFunction _ArrayAdd _ArrayBinarySearch _ArrayCreate
	\ _ArrayDelete _ArrayDisplay _ArrayInsert _ArrayMax _ArrayMaxIndex
	\ _ArrayMin _ArrayMinIndex _ArrayPop _ArrayPush _ArrayReverse
	\ _ArraySearch _ArraySort _ArraySwap _ArrayToClip _ArrayToString
	\ _ArrayTrim
" color
syn keyword autoitFunction _ColorgetBlue _ColorGetGreen _ColorGetRed
" date
syn keyword autoitFunction _DateAdd _DateDayOfWeek _DateDaysInMonth _DateDiff
	\ _DateIsLeapYear _DateIsValid _DateTimeFormat _DateTimeSplit
	\ _DateToDayOfWeek _ToDayOfWeekISO _DateToDayValue _DayValueToDate _Now
	\ _NowCalc _NowCalcDate _NowDate _NowTime _SetDate _SetTime _TicksToTime
	\ _TimeToTicks _WeekNumberISO
" file
syn keyword autoitFunction _FileCountLines _FileCreate _FileListToArray
	\ _FilePrint _FileReadToArray _FileWriteFromArray _FileWriteLog
	\ _FileWriteToLine _PathFull _PathMake _PathSplit _ReplaceStringInFile
	\ _TempFile
" guicombo
syn keyword autoitFunction _GUICtrlComboAddDir _GUICtrlComboAddString
	\ _GUICtrlComboAutoComplete _GUICtrlComboDeleteString
	\ _GUICtrlComboFindString _GUICtrlComboGetCount _GUICtrlComboGetCurSel
	\ _GUICtrlComboGetDroppedControlRect _GUICtrlComboGetDroppedState
	\ _GUICtrlComboGetDroppedWidth _GUICtrlComboGetEditSel
	\ _GUICtrlComboGetExtendedUI _GUICtrlComboGetHorizontalExtent
	\ _GUICtrlComboGetItemHeight _GUICtrlComboGetLBText
	\ _GUICtrlComboGetLBTextLen _GUICtrlComboGetList _GUICtrlComboGetLocale
	\ _GUICtrlComboGetMinVisible _GUICtrlComboGetTopIndex
	\ _GUICtrlComboInitStorage _GUICtrlComboInsertString
	\ _GUICtrlComboLimitText _GUICtrlComboResetContent
	\ _GUICtrlComboSelectString _GUICtrlComboSetCurSel
	\ _GUICtrlComboSetDroppedWidth _GUICtrlComboSetEditSel
	\ _GUICtrlComboSetExtendedUI _GUICtrlComboSetHorizontalExtent
	\ _GUICtrlComboSetItemHeight _GUICtrlComboSetMinVisible
	\ _GUICtrlComboSetTopIndex _GUICtrlComboShowDropDown
" guiedit
syn keyword autoitFunction _GUICtrlEditCanUndo _GUICtrlEditEmptyUndoBuffer
	\ _GuiCtrlEditFind _GUICtrlEditGetFirstVisibleLine _GUICtrlEditGetLine
	\ _GUICtrlEditGetLineCount _GUICtrlEditGetModify _GUICtrlEditGetRect
	\ _GUICtrlEditGetSel _GUICtrlEditLineFromChar _GUICtrlEditLineIndex
	\ _GUICtrlEditLineLength _GUICtrlEditLineScroll _GUICtrlEditReplaceSel
	\ _GUICtrlEditScroll _GUICtrlEditSetModify _GUICtrlEditSetRect
	\ _GUICtrlEditSetSel _GUICtrlEditUndo
" guiipaddress
syn keyword autoitFunction _GUICtrlIpAddressClear _GUICtrlIpAddressCreate
	\ _GUICtrlIpAddressDelete _GUICtrlIpAddressGet _GUICtrlIpAddressIsBlank
	\ _GUICtrlIpAddressSet _GUICtrlIpAddressSetFocus
	\ _GUICtrlIpAddressSetFont
	\ _GUICtrlIpAddressSetRange _GUICtrlIpAddressShowHide
" guilist
syn keyword autoitFunction _GUICtrlListAddDir _GUICtrlListAddItem
	\ _GUICtrlListClear
	\ _GUICtrlListCount _GUICtrlListDeleteItem _GUICtrlListFindString
	\ _GUICtrlListGetAnchorIndex _GUICtrlListGetCaretIndex
	\ _GUICtrlListGetHorizontalExtent _GUICtrlListGetInfo
	\ _GUICtrlListGetItemRect _GUICtrlListGetLocale _GUICtrlListGetSelCount
	\ _GUICtrlListGetSelItems _GUICtrlListGetSelItemsText
	\ _GUICtrlListGetSelState _GUICtrlListGetText _GUICtrlListGetTextLen
	\ _GUICtrlListGetTopIndex _GUICtrlListInsertItem
	\ _GUICtrlListReplaceString _GUICtrlListSelectedIndex
	\ _GUICtrlListSelectIndex _GUICtrlListSelectString
	\ _GUICtrlListSelItemRange _GUICtrlListSelItemRangeEx
	\ _GUICtrlListSetAnchorIndex _GUICtrlListSetCaretIndex
	\ _GUICtrlListSetHorizontalExtent _GUICtrlListSetLocale
	\ _GUICtrlListSetSel _GUICtrlListSetTopIndex _GUICtrlListSort
	\ _GUICtrlListSwapString
" guilistview
syn keyword autoitFunction _GUICtrlListViewCopyItems
	\ _GUICtrlListViewDeleteAllItems _GUICtrlListViewDeleteColumn
	\ _GUICtrlListViewDeleteItem _GUICtrlListViewDeleteItemsSelected
	\ _GUICtrlListViewEnsureVisible _GUICtrlListViewFindItem
	\ _GUICtrlListViewGetBackColor _GUICtrlListViewGetCallBackMask
	\ _GUICtrlListViewGetCheckedState _GUICtrlListViewGetColumnOrder
	\ _GUICtrlListViewGetColumnWidth _GUICtrlListViewGetCounterPage
	\ _GUICtrlListViewGetCurSel _GUICtrlListViewGetExtendedListViewStyle
	\ _GUICtrlListViewGetHeader _GUICtrlListViewGetHotCursor
	\ _GUICtrlListViewGetHotItem _GUICtrlListViewGetHoverTime
	\ _GUICtrlListViewGetItemCount _GUICtrlListViewGetItemText
	\ _GUICtrlListViewGetItemTextArray _GUICtrlListViewGetNextItem
	\ _GUICtrlListViewGetSelectedCount _GUICtrlListViewGetSelectedIndices
	\ _GUICtrlListViewGetSubItemsCount _GUICtrlListViewGetTopIndex
	\ _GUICtrlListViewGetUnicodeFormat _GUICtrlListViewHideColumn
	\ _GUICtrlListViewInsertColumn _GUICtrlListViewInsertItem
	\ _GUICtrlListViewJustifyColumn _GUICtrlListViewScroll
	\ _GUICtrlListViewSetCheckState _GUICtrlListViewSetColumnHeaderText
	\ _GUICtrlListViewSetColumnOrder _GUICtrlListViewSetColumnWidth
	\ _GUICtrlListViewSetHotItem _GUICtrlListViewSetHoverTime
	\ _GUICtrlListViewSetItemCount _GUICtrlListViewSetItemSelState
	\ _GUICtrlListViewSetItemText _GUICtrlListViewSort
" guimonthcal
syn keyword autoitFunction _GUICtrlMonthCalGet1stDOW _GUICtrlMonthCalGetColor
	\ _GUICtrlMonthCalGetDelta _GUICtrlMonthCalGetMaxSelCount
	\ _GUICtrlMonthCalGetMaxTodayWidth _GUICtrlMonthCalGetMinReqRect
	\ _GUICtrlMonthCalSet1stDOW _GUICtrlMonthCalSetColor
	\ _GUICtrlMonthCalSetDelta _GUICtrlMonthCalSetMaxSelCount
" guislider
syn keyword autoitFunction _GUICtrlSliderClearTics _GUICtrlSliderGetLineSize
	\ _GUICtrlSliderGetNumTics _GUICtrlSliderGetPageSize
	\ _GUICtrlSliderGetPos _GUICtrlSliderGetRangeMax
	\ _GUICtrlSliderGetRangeMin _GUICtrlSliderSetLineSize
	\ _GUICtrlSliderSetPageSize _GUICtrlSliderSetPos
	\ _GUICtrlSliderSetTicFreq
" guistatusbar
syn keyword autoitFunction _GuiCtrlStatusBarCreate
	\ _GUICtrlStatusBarCreateProgress _GUICtrlStatusBarDelete
	\ _GuiCtrlStatusBarGetBorders _GuiCtrlStatusBarGetIcon
	\ _GuiCtrlStatusBarGetParts _GuiCtrlStatusBarGetRect
	\ _GuiCtrlStatusBarGetText _GuiCtrlStatusBarGetTextLength
	\ _GuiCtrlStatusBarGetTip _GuiCtrlStatusBarGetUnicode
	\ _GUICtrlStatusBarIsSimple _GuiCtrlStatusBarResize
	\ _GuiCtrlStatusBarSetBKColor _GuiCtrlStatusBarSetIcon
	\ _GuiCtrlStatusBarSetMinHeight _GUICtrlStatusBarSetParts
	\ _GuiCtrlStatusBarSetSimple _GuiCtrlStatusBarSetText
	\ _GuiCtrlStatusBarSetTip _GuiCtrlStatusBarSetUnicode
	\ _GUICtrlStatusBarShowHide 
" guitab
syn keyword autoitFunction _GUICtrlTabDeleteAllItems _GUICtrlTabDeleteItem
	\ _GUICtrlTabDeselectAll _GUICtrlTabGetCurFocus _GUICtrlTabGetCurSel
	\ _GUICtrlTabGetExtendedStyle _GUICtrlTabGetItemCount
	\ _GUICtrlTabGetItemRect _GUICtrlTabGetRowCount
	\ _GUICtrlTabGetUnicodeFormat _GUICtrlTabHighlightItem
	\ _GUICtrlTabSetCurFocus _GUICtrlTabSetCurSel
	\ _GUICtrlTabSetMinTabWidth _GUICtrlTabSetUnicodeFormat
" guitreeview
syn keyword autoitFunction _GUICtrlTreeViewDeleteAllItems
	\ _GUICtrlTreeViewDeleteItem _GUICtrlTreeViewExpand
	\ _GUICtrlTreeViewGetBkColor _GUICtrlTreeViewGetCount
	\ _GUICtrlTreeViewGetIndent _GUICtrlTreeViewGetLineColor
	\ _GUICtrlTreeViewGetParentHandle _GUICtrlTreeViewGetParentID
	\ _GUICtrlTreeViewGetState _GUICtrlTreeViewGetText
	\ _GUICtrlTreeViewGetTextColor _GUICtrlTreeViewItemGetTree
	\ _GUICtrlTreeViewInsertItem _GUICtrlTreeViewSetBkColor
	\ _GUICtrlTreeViewSetIcon _GUICtrlTreeViewSetIndent
	\ _GUICtrlTreeViewSetLineColor GUICtrlTreeViewSetState
	\ _GUICtrlTreeViewSetText _GUICtrlTreeViewSetTextColor
	\ _GUICtrlTreeViewSort
" ie
syn keyword autoitFunction _IE_Example _IE_Introduction _IE_VersionInfo
	\ _IEAction _IEAttach _IEBodyReadHTML _IEBodyReadText _IEBodyWriteHTML
	\ _IECreate _IECreateEmbedded _IEDocGetObj _IEDocInsertHTML
	\ _IEDocInsertText _IEDocReadHTML _IEDocWriteHTML
	\ _IEErrorHandlerDeRegister _IEErrorHandlerRegister _IEErrorNotify
	\ _IEFormElementCheckboxSelect _IEFormElementGetCollection
	\ _IEFormElementGetObjByName _IEFormElementGetValue
	\ _IEFormElementOptionSelect _IEFormElementRadioSelect
	\ _IEFormElementSetValue _IEFormGetCollection _IEFormGetObjByName
	\ _IEFormImageClick _IEFormReset _IEFormSubmit _IEFrameGetCollection
	\ _IEFrameGetObjByName _IEGetObjByName _IEHeadInsertEventScript
	\ _IEImgClick _IEImgGetCollection _IEIsFrameSet _IELinkClickByIndex
	\ _IELinkClickByText _IELinkGetCollection _IELoadWait _IELoadWaitTimeout
	\ _IENavigate _IEPropertyGet _IEPropertySet _IEQuit
	\ _IETableGetCollection _IETableWriteToArray _IETagNameAllGetCollection
	\  _IETagNameGetCollection
" inet
syn keyword autoitFunction _GetIP _INetExplorerCapable _INetGetSource _INetMail
	\ _INetSmtpMail _TCPIpToName
" math
syn keyword autoitFunction _Degree _MathCheckDiv _Max _Min _Radian
" miscellaneous
syn keyword autoitFunction _ChooseColor _ChooseFont _ClipPutFile _Iif
	\ _IsPressed _MouseTrap _SendMessage _Singleton
" process
syn keyword autoitFunction _ProcessGetName _ProcessGetPriority _RunDOS
" sound
syn keyword autoitFunction _SoundClose _SoundLength _SoundOpen _SoundPause
	\ _SoundPlay _SoundPos _SoundResume _SoundSeek _SoundStatus _SoundStop
" sqlite
syn keyword autoitFunction _SQLite_Changes _SQLite_Close
	\ _SQLite_Display2DResult _SQLite_Encode _SQLite_ErrCode _SQLite_ErrMsg
	\ _SQLite_Escape _SQLite_Exec _SQLite_FetchData _SQLite_FetchNames
	\ _SQLite_GetTable _SQLite_GetTable2D _SQLite_LastInsertRowID
	\ _SQLite_LibVersion _SQLite_Open _SQLite_Query _SQLite_QueryFinalize
	\ _SQLite_QueryReset _SQLite_QuerySingleRow _SQLite_SaveMode
	\ _SQLite_SetTimeout _SQLite_Shutdown _SQLite_SQLiteExe _SQLite_Startup
	\ _SQLite_TotalChanges
" string
syn keyword autoitFunction _HexToString _StringAddComma _StringBetween
	\ _StringEncrypt _StringInsert _StringProper _StringRepeat
	\ _StringReverse _StringToHex
" visa
syn keyword autoitFunction _viClose _viExecCommand _viFindGpib _viGpibBusReset
	\ _viGTL _viOpen _viSetAttribute _viSetTimeout

" read-only macros
syn match autoitBuiltin "@AppData\(Common\)\=Dir"
syn match autoitBuiltin "@AutoItExe"
syn match autoitBuiltin "@AutoItPID"
syn match autoitBuiltin "@AutoItVersion"
syn match autoitBuiltin "@COM_EventObj"
syn match autoitBuiltin "@CommonFilesDir"
syn match autoitBuiltin "@Compiled"
syn match autoitBuiltin "@ComputerName"
syn match autoitBuiltin "@ComSpec"
syn match autoitBuiltin "@CR\(LF\)\="
syn match autoitBuiltin "@Desktop\(Common\)\=Dir"
syn match autoitBuiltin "@DesktopDepth"
syn match autoitBuiltin "@DesktopHeight"
syn match autoitBuiltin "@DesktopRefresh"
syn match autoitBuiltin "@DesktopWidth"
syn match autoitBuiltin "@DocumentsCommonDir"
syn match autoitBuiltin "@Error"
syn match autoitBuiltin "@ExitCode"
syn match autoitBuiltin "@ExitMethod"
syn match autoitBuiltin "@Extended"
syn match autoitBuiltin "@Favorites\(Common\)\=Dir"
syn match autoitBuiltin "@GUI_CtrlId"
syn match autoitBuiltin "@GUI_CtrlHandle"
syn match autoitBuiltin "@GUI_DragId"
syn match autoitBuiltin "@GUI_DragFile"
syn match autoitBuiltin "@GUI_DropId"
syn match autoitBuiltin "@GUI_WinHandle"
syn match autoitBuiltin "@HomeDrive"
syn match autoitBuiltin "@HomePath"
syn match autoitBuiltin "@HomeShare"
syn match autoitBuiltin "@HOUR"
syn match autoitBuiltin "@HotKeyPressed"
syn match autoitBuiltin "@InetGetActive"
syn match autoitBuiltin "@InetGetBytesRead"
syn match autoitBuiltin "@IPAddress[1234]"
syn match autoitBuiltin "@KBLayout"
syn match autoitBuiltin "@LF"
syn match autoitBuiltin "@Logon\(DNS\)\=Domain"
syn match autoitBuiltin "@LogonServer"
syn match autoitBuiltin "@MDAY"
syn match autoitBuiltin "@MIN"
syn match autoitBuiltin "@MON"
syn match autoitBuiltin "@MyDocumentsDir"
syn match autoitBuiltin "@NumParams"
syn match autoitBuiltin "@OSBuild"
syn match autoitBuiltin "@OSLang"
syn match autoitBuiltin "@OSServicePack"
syn match autoitBuiltin "@OSTYPE"
syn match autoitBuiltin "@OSVersion"
syn match autoitBuiltin "@ProcessorArch"
syn match autoitBuiltin "@ProgramFilesDir"
syn match autoitBuiltin "@Programs\(Common\)\=Dir"
syn match autoitBuiltin "@ScriptDir"
syn match autoitBuiltin "@ScriptFullPath"
syn match autoitBuiltin "@ScriptLineNumber"
syn match autoitBuiltin "@ScriptName"
syn match autoitBuiltin "@SEC"
syn match autoitBuiltin "@StartMenu\(Common\)\=Dir"
syn match autoitBuiltin "@Startup\(Common\)\=Dir"
syn match autoitBuiltin "@SW_DISABLE"
syn match autoitBuiltin "@SW_ENABLE"
syn match autoitBuiltin "@SW_HIDE"
syn match autoitBuiltin "@SW_LOCK"
syn match autoitBuiltin "@SW_MAXIMIZE"
syn match autoitBuiltin "@SW_MINIMIZE"
syn match autoitBuiltin "@SW_RESTORE"
syn match autoitBuiltin "@SW_SHOW"
syn match autoitBuiltin "@SW_SHOWDEFAULT"
syn match autoitBuiltin "@SW_SHOWMAXIMIZED"
syn match autoitBuiltin "@SW_SHOWMINIMIZED"
syn match autoitBuiltin "@SW_SHOWMINNOACTIVE"
syn match autoitBuiltin "@SW_SHOWNA"
syn match autoitBuiltin "@SW_SHOWNOACTIVATE"
syn match autoitBuiltin "@SW_SHOWNORMAL"
syn match autoitBuiltin "@SW_UNLOCK"
syn match autoitBuiltin "@SystemDir"
syn match autoitBuiltin "@TAB"
syn match autoitBuiltin "@TempDir"
syn match autoitBuiltin "@TRAY_ID"
syn match autoitBuiltin "@TrayIconFlashing"
syn match autoitBuiltin "@TrayIconVisible"
syn match autoitBuiltin "@UserProfileDir"
syn match autoitBuiltin "@UserName"
syn match autoitBuiltin "@WDAY"
syn match autoitBuiltin "@WindowsDir"
syn match autoitBuiltin "@WorkingDir"
syn match autoitBuiltin "@YDAY"
syn match autoitBuiltin "@YEAR"

"comments and commenting-out
syn match autoitComment ";.*"
"in this way also #ce alone will be highlighted
syn match autoitCommDelimiter "^\s*#comments-start\>"
syn match autoitCommDelimiter "^\s*#cs\>"
syn match autoitCommDelimiter "^\s*#comments-end\>"
syn match autoitCommDelimiter "^\s*#ce\>"
syn region autoitComment
	\ matchgroup=autoitCommDelimiter
	\ start="^\s*#comments-start\>" start="^\s*#cs\>"
	\ end="^\s*#comments-end\>" end="^\s*#ce\>"

"one character operators
syn match autoitOperator "[-+*/&^=<>][^-+*/&^=<>]"me=e-1
"two characters operators
syn match autoitOperator "==[^=]"me=e-1
syn match autoitOperator "<>"
syn match autoitOperator "<="
syn match autoitOperator ">="
syn match autoitOperator "+="
syn match autoitOperator "-="
syn match autoitOperator "*="
syn match autoitOperator "/="
syn match autoitOperator "&="
syn keyword autoitOperator NOT AND OR

syn match autoitParen "(\|)"
syn match autoitBracket "\[\|\]"
syn match autoitComma ","

"numbers must come after operator '-'
"decimal numbers without a dot
syn match autoitNumber "-\=\<\d\+\>"
"hexadecimal numbers without a dot
syn match autoitNumber "-\=\<0x\x\+\>"
"floating point number with dot (inside or at end)

syn match autoitNumber "-\=\<\d\+\.\d*\>"
"floating point number, starting with a dot
syn match autoitNumber "-\=\<\.\d\+\>"
"scientific notation numbers without dots
syn match autoitNumber "-\=\<\d\+e[-+]\=\d\+\>"
"scientific notation numbers with dots
syn match autoitNumber "-\=\<\(\(\d\+\.\d*\)\|\(\.\d\+\)\)\(e[-+]\=\d\+\)\=\>"

"string constants
"we want the escaped quotes marked in red
syn match autoitDoubledSingles +''+ contained
syn match autoitDoubledDoubles +""+ contained
"we want the continuation character marked in red
"(also at the top level, not just contained)
syn match autoitCont "_$"

" send key list - must be defined before autoitStrings
syn match autoitSend "{!}" contained
syn match autoitSend "{#}" contained
syn match autoitSend "{+}" contained
syn match autoitSend "{^}" contained
syn match autoitSend "{{}" contained
syn match autoitSend "{}}" contained
syn match autoitSend "{SPACE}" contained
syn match autoitSend "{ENTER}" contained
syn match autoitSend "{ALT}" contained
syn match autoitSend "{BACKSPACE}" contained
syn match autoitSend "{BS}" contained
syn match autoitSend "{DELETE}" contained
syn match autoitSend "{DEL}" contained
syn match autoitSend "{UP}" contained
syn match autoitSend "{DOWN}" contained
syn match autoitSend "{LEFT}" contained
syn match autoitSend "{RIGHT}" contained
syn match autoitSend "{HOME}" contained
syn match autoitSend "{END}" contained
syn match autoitSend "{ESCAPE}" contained
syn match autoitSend "{ESC}" contained
syn match autoitSend "{INSERT}" contained
syn match autoitSend "{INS}" contained
syn match autoitSend "{PGUP}" contained
syn match autoitSend "{PGDN}" contained
syn match autoitSend "{F1}" contained
syn match autoitSend "{F2}" contained
syn match autoitSend "{F3}" contained
syn match autoitSend "{F4}" contained
syn match autoitSend "{F5}" contained
syn match autoitSend "{F6}" contained
syn match autoitSend "{F7}" contained
syn match autoitSend "{F8}" contained
syn match autoitSend "{F9}" contained
syn match autoitSend "{F10}" contained
syn match autoitSend "{F11}" contained
syn match autoitSend "{F12}" contained
syn match autoitSend "{TAB}" contained
syn match autoitSend "{PRINTSCREEN}" contained
syn match autoitSend "{LWIN}" contained
syn match autoitSend "{RWIN}" contained
syn match autoitSend "{NUMLOCK}" contained
syn match autoitSend "{CTRLBREAK}" contained
syn match autoitSend "{PAUSE}" contained
syn match autoitSend "{CAPSLOCK}" contained
syn match autoitSend "{NUMPAD0}" contained
syn match autoitSend "{NUMPAD1}" contained
syn match autoitSend "{NUMPAD2}" contained
syn match autoitSend "{NUMPAD3}" contained
syn match autoitSend "{NUMPAD4}" contained
syn match autoitSend "{NUMPAD5}" contained
syn match autoitSend "{NUMPAD6}" contained
syn match autoitSend "{NUMPAD7}" contained
syn match autoitSend "{NUMPAD8}" contained
syn match autoitSend "{NUMPAD9}" contained
syn match autoitSend "{NUMPADMULT}" contained
syn match autoitSend "{NUMPADADD}" contained
syn match autoitSend "{NUMPADSUB}" contained
syn match autoitSend "{NUMPADDIV}" contained
syn match autoitSend "{NUMPADDOT}" contained
syn match autoitSend "{NUMPADENTER}" contained
syn match autoitSend "{APPSKEY}" contained
syn match autoitSend "{LALT}" contained
syn match autoitSend "{RALT}" contained
syn match autoitSend "{LCTRL}" contained
syn match autoitSend "{RCTRL}" contained
syn match autoitSend "{LSHIFT}" contained
syn match autoitSend "{RSHIFT}" contained
syn match autoitSend "{SLEEP}" contained
syn match autoitSend "{ALTDOWN}" contained
syn match autoitSend "{SHIFTDOWN}" contained
syn match autoitSend "{CTRLDOWN}" contained
syn match autoitSend "{LWINDOWN}" contained
syn match autoitSend "{RWINDOWN}" contained
syn match autoitSend "{ASC \d\d\d\d}" contained
syn match autoitSend "{BROWSER_BACK}" contained
syn match autoitSend "{BROWSER_FORWARD}" contained
syn match autoitSend "{BROWSER_REFRESH}" contained
syn match autoitSend "{BROWSER_STOP}" contained
syn match autoitSend "{BROWSER_SEARCH}" contained
syn match autoitSend "{BROWSER_FAVORITES}" contained
syn match autoitSend "{BROWSER_HOME}" contained
syn match autoitSend "{VOLUME_MUTE}" contained
syn match autoitSend "{VOLUME_DOWN}" contained
syn match autoitSend "{VOLUME_UP}" contained
syn match autoitSend "{MEDIA_NEXT}" contained
syn match autoitSend "{MEDIA_PREV}" contained
syn match autoitSend "{MEDIA_STOP}" contained
syn match autoitSend "{MEDIA_PLAY_PAUSE}" contained
syn match autoitSend "{LAUNCH_MAIL}" contained
syn match autoitSend "{LAUNCH_MEDIA}" contained
syn match autoitSend "{LAUNCH_APP1}" contained
syn match autoitSend "{LAUNCH_APP2}" contained

"this was tricky!
"we use an oneline region, instead of a match, in order to use skip=
"matchgroup= so start and end quotes are not considered as au3Doubled
"contained
syn region autoitString oneline contains=autoitSend matchgroup=autoitQuote start=+"+
	\ end=+"+ end=+_\n\{1}.*"+
	\ contains=autoitCont,autoitDoubledDoubles skip=+""+
syn region autoitString oneline matchgroup=autoitQuote start=+'+
	\ end=+'+ end=+_\n\{1}.*'+
	\ contains=autoitCont,autoitDoubledSingles skip=+''+

syn match autoitVarSelector "\$"	contained display
syn match autoitVariable "$\w\+" contains=autoitVarSelector

" options - must be defined after autoitStrings
syn match autoitOption "\([\"\']\)CaretCoordMode\1"
syn match autoitOption "\([\"\']\)ColorMode\1"
syn match autoitOption "\([\"\']\)ExpandEnvStrings\1"
syn match autoitOption "\([\"\']\)ExpandVarStrings\1"
syn match autoitOption "\([\"\']\)FtpBinaryMode\1"
syn match autoitOption "\([\"\']\)GUICloseOnEsc\1"
syn match autoitOption "\([\"\']\)GUICoordMode\1"
syn match autoitOption "\([\"\']\)GUIDataSeparatorChar\1"
syn match autoitOption "\([\"\']\)GUIOnEventMode\1"
syn match autoitOption "\([\"\']\)GUIResizeMode\1"
syn match autoitOption "\([\"\']\)GUIEventCompatibilityMode\1"
syn match autoitOption "\([\"\']\)MouseClickDelay\1"
syn match autoitOption "\([\"\']\)MouseClickDownDelay\1"
syn match autoitOption "\([\"\']\)MouseClickDragDelay\1"
syn match autoitOption "\([\"\']\)MouseCoordMode\1"
syn match autoitOption "\([\"\']\)MustDeclareVars\1"
syn match autoitOption "\([\"\']\)OnExitFunc\1"
syn match autoitOption "\([\"\']\)PixelCoordMode\1"
syn match autoitOption "\([\"\']\)RunErrorsFatal\1"
syn match autoitOption "\([\"\']\)SendAttachMode\1"
syn match autoitOption "\([\"\']\)SendCapslockMode\1"
syn match autoitOption "\([\"\']\)SendKeyDelay\1"
syn match autoitOption "\([\"\']\)SendKeyDownDelay\1"
syn match autoitOption "\([\"\']\)TCPTimeout\1"
syn match autoitOption "\([\"\']\)TrayAutoPause\1"
syn match autoitOption "\([\"\']\)TrayIconDebug\1"
syn match autoitOption "\([\"\']\)TrayIconHide\1"
syn match autoitOption "\([\"\']\)TrayMenuMode\1"
syn match autoitOption "\([\"\']\)TrayOnEventMode\1"
syn match autoitOption "\([\"\']\)WinDetectHiddenText\1"
syn match autoitOption "\([\"\']\)WinSearchChildren\1"
syn match autoitOption "\([\"\']\)WinTextMatchMode\1"
syn match autoitOption "\([\"\']\)WinTitleMatchMode\1"
syn match autoitOption "\([\"\']\)WinWaitDelay\1"

" styles - must be defined after autoitVariable
" common
syn match autoitStyle "\$WS_BORDER"
syn match autoitStyle "\$WS_POPUP"
syn match autoitStyle "\$WS_CAPTION"
syn match autoitStyle "\$WS_CLIPCHILDREN"
syn match autoitStyle "\$WS_CLIPSIBLINGS"
syn match autoitStyle "\$WS_DISABLED"
syn match autoitStyle "\$WS_DLGFRAME"
syn match autoitStyle "\$WS_HSCROLL"
syn match autoitStyle "\$WS_MAXIMIZE"
syn match autoitStyle "\$WS_MAXIMIZEBOX"
syn match autoitStyle "\$WS_MINIMIZE"
syn match autoitStyle "\$WS_MINIMIZEBOX"
syn match autoitStyle "\$WS_OVERLAPPED"
syn match autoitStyle "\$WS_OVERLAPPEDWINDOW"
syn match autoitStyle "\$WS_POPUPWINDOW"
syn match autoitStyle "\$WS_SIZEBOX"
syn match autoitStyle "\$WS_SYSMENU"
syn match autoitStyle "\$WS_THICKFRAME"
syn match autoitStyle "\$WS_VSCROLL"
syn match autoitStyle "\$WS_VISIBLE"
syn match autoitStyle "\$WS_CHILD"
syn match autoitStyle "\$WS_GROUP"
syn match autoitStyle "\$WS_TABSTOP"
syn match autoitStyle "\$DS_MODALFRAME"
syn match autoitStyle "\$DS_SETFOREGROUND"
syn match autoitStyle "\$DS_CONTEXTHELP"
" common extended
syn match autoitStyle "\$WS_EX_ACCEPTFILES"
syn match autoitStyle "\$WS_EX_APPWINDOW"
syn match autoitStyle "\$WS_EX_CLIENTEDGE"
syn match autoitStyle "\$WS_EX_CONTEXTHELP"
syn match autoitStyle "\$WS_EX_DLGMODALFRAME"
syn match autoitStyle "\$WS_EX_MDICHILD"
syn match autoitStyle "\$WS_EX_OVERLAPPEDWINDOW"
syn match autoitStyle "\$WS_EX_STATICEDGE"
syn match autoitStyle "\$WS_EX_TOPMOST"
syn match autoitStyle "\$WS_EX_TRANSPARENT"
syn match autoitStyle "\$WS_EX_TOOLWINDOW"
syn match autoitStyle "\$WS_EX_WINDOWEDGE"
syn match autoitStyle "\$WS_EX_LAYERED"
syn match autoitStyle "\$GUI_WS_EX_PARENTDRAG"
" checkbox
syn match autoitStyle "\$BS_3STATE"
syn match autoitStyle "\$BS_AUTO3STATE"
syn match autoitStyle "\$BS_AUTOCHECKBOX"
syn match autoitStyle "\$BS_CHECKBOX"
syn match autoitStyle "\$BS_LEFT"
syn match autoitStyle "\$BS_PUSHLIKE"
syn match autoitStyle "\$BS_RIGHT"
syn match autoitStyle "\$BS_RIGHTBUTTON"
syn match autoitStyle "\$BS_GROUPBOX"
syn match autoitStyle "\$BS_AUTORADIOBUTTON"
" push button
syn match autoitStyle "\$BS_BOTTOM"
syn match autoitStyle "\$BS_CENTER"
syn match autoitStyle "\$BS_DEFPUSHBUTTON"
syn match autoitStyle "\$BS_MULTILINE"
syn match autoitStyle "\$BS_TOP"
syn match autoitStyle "\$BS_VCENTER"
syn match autoitStyle "\$BS_ICON"
syn match autoitStyle "\$BS_BITMAP"
syn match autoitStyle "\$BS_FLAT"
" combo
syn match autoitStyle "\$CBS_AUTOHSCROLL"
syn match autoitStyle "\$CBS_DISABLENOSCROLL"
syn match autoitStyle "\$CBS_DROPDOWN"
syn match autoitStyle "\$CBS_DROPDOWNLIST"
syn match autoitStyle "\$CBS_LOWERCASE"
syn match autoitStyle "\$CBS_NOINTEGRALHEIGHT"
syn match autoitStyle "\$CBS_OEMCONVERT"
syn match autoitStyle "\$CBS_SIMPLE"
syn match autoitStyle "\$CBS_SORT"
syn match autoitStyle "\$CBS_UPPERCASE"
" list
syn match autoitStyle "\$LBS_DISABLENOSCROLL"
syn match autoitStyle "\$LBS_NOINTEGRALHEIGHT"
syn match autoitStyle "\$LBS_NOSEL"
syn match autoitStyle "\$LBS_NOTIFY"
syn match autoitStyle "\$LBS_SORT"
syn match autoitStyle "\$LBS_STANDARD"
syn match autoitStyle "\$LBS_USETABSTOPS"
" edit/input
syn match autoitStyle "\$ES_AUTOHSCROLL"
syn match autoitStyle "\$ES_AUTOVSCROLL"
syn match autoitStyle "\$ES_CENTER"
syn match autoitStyle "\$ES_LOWERCASE"
syn match autoitStyle "\$ES_NOHIDESEL"
syn match autoitStyle "\$ES_NUMBER"
syn match autoitStyle "\$ES_OEMCONVERT"
syn match autoitStyle "\$ES_MULTILINE"
syn match autoitStyle "\$ES_PASSWORD"
syn match autoitStyle "\$ES_READONLY"
syn match autoitStyle "\$ES_RIGHT"
syn match autoitStyle "\$ES_UPPERCASE"
syn match autoitStyle "\$ES_WANTRETURN"
" progress bar
syn match autoitStyle "\$PBS_SMOOTH"
syn match autoitStyle "\$PBS_VERTICAL"
" up-down
syn match autoitStyle "\$UDS_ALIGNLEFT"
syn match autoitStyle "\$UDS_ALIGNRIGHT"
syn match autoitStyle "\$UDS_ARROWKEYS"
syn match autoitStyle "\$UDS_HORZ"
syn match autoitStyle "\$UDS_NOTHOUSANDS"
syn match autoitStyle "\$UDS_WRAP"
" label/static
syn match autoitStyle "\$SS_BLACKFRAME"
syn match autoitStyle "\$SS_BLACKRECT"
syn match autoitStyle "\$SS_CENTER"
syn match autoitStyle "\$SS_CENTERIMAGE"
syn match autoitStyle "\$SS_ETCHEDFRAME"
syn match autoitStyle "\$SS_ETCHEDHORZ"
syn match autoitStyle "\$SS_ETCHEDVERT"
syn match autoitStyle "\$SS_GRAYFRAME"
syn match autoitStyle "\$SS_GRAYRECT"
syn match autoitStyle "\$SS_LEFT"
syn match autoitStyle "\$SS_LEFTNOWORDWRAP"
syn match autoitStyle "\$SS_NOPREFIX"
syn match autoitStyle "\$SS_NOTIFY"
syn match autoitStyle "\$SS_RIGHT"
syn match autoitStyle "\$SS_RIGHTJUST"
syn match autoitStyle "\$SS_SIMPLE"
syn match autoitStyle "\$SS_SUNKEN"
syn match autoitStyle "\$SS_WHITEFRAME"
syn match autoitStyle "\$SS_WHITERECT"
" tab
syn match autoitStyle "\$TCS_SCROLLOPPOSITE"
syn match autoitStyle "\$TCS_BOTTOM"
syn match autoitStyle "\$TCS_RIGHT"
syn match autoitStyle "\$TCS_MULTISELECT"
syn match autoitStyle "\$TCS_FLATBUTTONS"
syn match autoitStyle "\$TCS_FORCEICONLEFT"
syn match autoitStyle "\$TCS_FORCELABELLEFT"
syn match autoitStyle "\$TCS_HOTTRACK"
syn match autoitStyle "\$TCS_VERTICAL"
syn match autoitStyle "\$TCS_TABS"
syn match autoitStyle "\$TCS_BUTTONS"
syn match autoitStyle "\$TCS_SINGLELINE"
syn match autoitStyle "\$TCS_MULTILINE"
syn match autoitStyle "\$TCS_RIGHTJUSTIFY"
syn match autoitStyle "\$TCS_FIXEDWIDTH"
syn match autoitStyle "\$TCS_RAGGEDRIGHT"
syn match autoitStyle "\$TCS_FOCUSONBUTTONDOWN"
syn match autoitStyle "\$TCS_OWNERDRAWFIXED"
syn match autoitStyle "\$TCS_TOOLTIPS"
syn match autoitStyle "\$TCS_FOCUSNEVER"
" avi clip
syn match autoitStyle "\$ACS_AUTOPLAY"
syn match autoitStyle "\$ACS_CENTER"
syn match autoitStyle "\$ACS_TRANSPARENT"
syn match autoitStyle "\$ACS_NONTRANSPARENT"
" date
syn match autoitStyle "\$DTS_UPDOWN"
syn match autoitStyle "\$DTS_SHOWNONE"
syn match autoitStyle "\$DTS_LONGDATEFORMAT"
syn match autoitStyle "\$DTS_TIMEFORMAT"
syn match autoitStyle "\$DTS_RIGHTALIGN"
syn match autoitStyle "\$DTS_SHORTDATEFORMAT"
" monthcal
syn match autoitStyle "\$MCS_NOTODAY"
syn match autoitStyle "\$MCS_NOTODAYCIRCLE"
syn match autoitStyle "\$MCS_WEEKNUMBERS"
" treeview
syn match autoitStyle "\$TVS_HASBUTTONS"
syn match autoitStyle "\$TVS_HASLINES"
syn match autoitStyle "\$TVS_LINESATROOT"
syn match autoitStyle "\$TVS_DISABLEDRAGDROP"
syn match autoitStyle "\$TVS_SHOWSELALWAYS"
syn match autoitStyle "\$TVS_RTLREADING"
syn match autoitStyle "\$TVS_NOTOOLTIPS"
syn match autoitStyle "\$TVS_CHECKBOXES"
syn match autoitStyle "\$TVS_TRACKSELECT"
syn match autoitStyle "\$TVS_SINGLEEXPAND"
syn match autoitStyle "\$TVS_FULLROWSELECT"
syn match autoitStyle "\$TVS_NOSCROLL"
syn match autoitStyle "\$TVS_NONEVENHEIGHT"
" slider
syn match autoitStyle "\$TBS_AUTOTICKS"
syn match autoitStyle "\$TBS_BOTH"
syn match autoitStyle "\$TBS_BOTTOM"
syn match autoitStyle "\$TBS_HORZ"
syn match autoitStyle "\$TBS_VERT"
syn match autoitStyle "\$TBS_NOTHUMB"
syn match autoitStyle "\$TBS_NOTICKS"
syn match autoitStyle "\$TBS_LEFT"
syn match autoitStyle "\$TBS_RIGHT"
syn match autoitStyle "\$TBS_TOP"
" listview
syn match autoitStyle "\$LVS_ICON"
syn match autoitStyle "\$LVS_REPORT"
syn match autoitStyle "\$LVS_SMALLICON"
syn match autoitStyle "\$LVS_LIST"
syn match autoitStyle "\$LVS_EDITLABELS"
syn match autoitStyle "\$LVS_NOCOLUMNHEADER"
syn match autoitStyle "\$LVS_NOSORTHEADER"
syn match autoitStyle "\$LVS_SINGLESEL"
syn match autoitStyle "\$LVS_SHOWSELALWAYS"
syn match autoitStyle "\$LVS_SORTASCENDING"
syn match autoitStyle "\$LVS_SORTDESCENDING"
" listview extended
syn match autoitStyle "\$LVS_EX_FULLROWSELECT"
syn match autoitStyle "\$LVS_EX_GRIDLINES"
syn match autoitStyle "\$LVS_EX_HEADERDRAGDROP"
syn match autoitStyle "\$LVS_EX_TRACKSELECT"
syn match autoitStyle "\$LVS_EX_CHECKBOXES"
syn match autoitStyle "\$LVS_EX_BORDERSELECT"
syn match autoitStyle "\$LVS_EX_DOUBLEBUFFER"
syn match autoitStyle "\$LVS_EX_FLATSB"
syn match autoitStyle "\$LVS_EX_MULTIWORKAREAS"
syn match autoitStyle "\$LVS_EX_SNAPTOGRID"
syn match autoitStyle "\$LVS_EX_SUBITEMIMAGES"

" constants - must be defined after autoitVariable - excludes styles
" constants - autoit options
syn match autoitConst "\$OPT_COORDSRELATIVE"
syn match autoitConst "\$OPT_COORDSABSOLUTE"
syn match autoitConst "\$OPT_COORDSCLIENT"
syn match autoitConst "\$OPT_ERRORSILENT"
syn match autoitConst "\$OPT_ERRORFATAL"
syn match autoitConst "\$OPT_CAPSNOSTORE"
syn match autoitConst "\$OPT_CAPSSTORE"
syn match autoitConst "\$OPT_MATCHSTART"
syn match autoitConst "\$OPT_MATCHANY"
syn match autoitConst "\$OPT_MATCHEXACT"
syn match autoitConst "\$OPT_MATCHADVANCED"
" constants - file
syn match autoitConst "\$FC_NOOVERWRITE"
syn match autoitConst "\$FC_OVERWRITE"
syn match autoitConst "\$FT_MODIFIED"
syn match autoitConst "\$FT_CREATED"
syn match autoitConst "\$FT_ACCESSED"
syn match autoitConst "\$FO_READ"
syn match autoitConst "\$FO_APPEND"
syn match autoitConst "\$FO_OVERWRITE"
syn match autoitConst "\$EOF"
syn match autoitConst "\$FD_FILEMUSTEXIST"
syn match autoitConst "\$FD_PATHMUSTEXIST"
syn match autoitConst "\$FD_MULTISELECT"
syn match autoitConst "\$FD_PROMPTCREATENEW"
syn match autoitConst "\$FD_PROMPTOVERWRITE"
" constants - keyboard
syn match autoitConst "\$KB_SENDSPECIAL"
syn match autoitConst "\$KB_SENDRAW"
syn match autoitConst "\$KB_CAPSOFF"
syn match autoitConst "\$KB_CAPSON"
" constants - message box
syn match autoitConst "\$MB_OK"
syn match autoitConst "\$MB_OKCANCEL"
syn match autoitConst "\$MB_ABORTRETRYIGNORE"
syn match autoitConst "\$MB_YESNOCANCEL"
syn match autoitConst "\$MB_YESNO"
syn match autoitConst "\$MB_RETRYCANCEL"
syn match autoitConst "\$MB_ICONHAND"
syn match autoitConst "\$MB_ICONQUESTION"
syn match autoitConst "\$MB_ICONEXCLAMATION"
syn match autoitConst "\$MB_ICONASTERISK"
syn match autoitConst "\$MB_DEFBUTTON1"
syn match autoitConst "\$MB_DEFBUTTON2"
syn match autoitConst "\$MB_DEFBUTTON3"
syn match autoitConst "\$MB_APPLMODAL"
syn match autoitConst "\$MB_SYSTEMMODAL"
syn match autoitConst "\$MB_TASKMODAL"
syn match autoitConst "\$MB_TOPMOST"
syn match autoitConst "\$MB_RIGHTJUSTIFIED"
syn match autoitConst "\$IDTIMEOUT"
syn match autoitConst "\$IDOK"
syn match autoitConst "\$IDCANCEL"
syn match autoitConst "\$IDABORT"
syn match autoitConst "\$IDRETRY"
syn match autoitConst "\$IDIGNORE"
syn match autoitConst "\$IDYES"
syn match autoitConst "\$IDNO"
syn match autoitConst "\$IDTRYAGAIN"
syn match autoitConst "\$IDCONTINUE"
" constants - progress and splash
syn match autoitConst "\$DLG_NOTITLE"
syn match autoitConst "\$DLG_NOTONTOP"
syn match autoitConst "\$DLG_TEXTLEFT"
syn match autoitConst "\$DLG_TEXTRIGHT"
syn match autoitConst "\$DLG_MOVEABLE"
syn match autoitConst "\$DLG_TEXTVCENTER"
" constants - tray tip
syn match autoitConst "\$TIP_ICONNONE"
syn match autoitConst "\$TIP_ICONASTERISK"
syn match autoitConst "\$TIP_ICONEXCLAMATION"
syn match autoitConst "\$TIP_ICONHAND"
syn match autoitConst "\$TIP_NOSOUND"
" constants - mouse
syn match autoitConst "\$IDC_UNKNOWN"
syn match autoitConst "\$IDC_APPSTARTING"
syn match autoitConst "\$IDC_ARROW"
syn match autoitConst "\$IDC_CROSS"
syn match autoitConst "\$IDC_HELP"
syn match autoitConst "\$IDC_IBEAM"
syn match autoitConst "\$IDC_ICON"
syn match autoitConst "\$IDC_NO"
syn match autoitConst "\$IDC_SIZE"
syn match autoitConst "\$IDC_SIZEALL"
syn match autoitConst "\$IDC_SIZENESW"
syn match autoitConst "\$IDC_SIZENS"
syn match autoitConst "\$IDC_SIZENWSE"
syn match autoitConst "\$IDC_SIZEWE"
syn match autoitConst "\$IDC_UPARROW"
syn match autoitConst "\$IDC_WAIT"
" constants - process
syn match autoitConst "\$SD_LOGOFF"
syn match autoitConst "\$SD_SHUTDOWN"
syn match autoitConst "\$SD_REBOOT"
syn match autoitConst "\$SD_FORCE"
syn match autoitConst "\$SD_POWERDOWN"
" constants - string
syn match autoitConst "\$STR_NOCASESENSE"
syn match autoitConst "\$STR_CASESENSE"
syn match autoitConst "\$STR_STRIPLEADING"
syn match autoitConst "\$STR_STRIPTRAILING"
syn match autoitConst "\$STR_STRIPSPACES"
syn match autoitConst "\$STR_STRIPALL"
" constants - tray
syn match autoitConst "\$TRAY_ITEM_EXIT"
syn match autoitConst "\$TRAY_ITEM_PAUSE"
syn match autoitConst "\$TRAY_ITEM_FIRST"
syn match autoitConst "\$TRAY_CHECKED"
syn match autoitConst "\$TRAY_UNCHECKED"
syn match autoitConst "\$TRAY_ENABLE"
syn match autoitConst "\$TRAY_DISABLE"
syn match autoitConst "\$TRAY_FOCUS"
syn match autoitConst "\$TRAY_DEFAULT"
syn match autoitConst "\$TRAY_EVENT_SHOWICON"
syn match autoitConst "\$TRAY_EVENT_HIDEICON"
syn match autoitConst "\$TRAY_EVENT_FLASHICON"
syn match autoitConst "\$TRAY_EVENT_NOFLASHICON"
syn match autoitConst "\$TRAY_EVENT_PRIMARYDOWN"
syn match autoitConst "\$TRAY_EVENT_PRIMARYUP"
syn match autoitConst "\$TRAY_EVENT_SECONDARYDOWN"
syn match autoitConst "\$TRAY_EVENT_SECONDARYUP"
syn match autoitConst "\$TRAY_EVENT_MOUSEOVER"
syn match autoitConst "\$TRAY_EVENT_MOUSEOUT"
syn match autoitConst "\$TRAY_EVENT_PRIMARYDOUBLE"
syn match autoitConst "\$TRAY_EVENT_SECONDARYDOUBLE"
" constants - stdio
syn match autoitConst "\$STDIN_CHILD"
syn match autoitConst "\$STDOUT_CHILD"
syn match autoitConst "\$STDERR_CHILD"
" constants - color
syn match autoitConst "\$COLOR_BLACK"
syn match autoitConst "\$COLOR_SILVER"
syn match autoitConst "\$COLOR_GRAY"
syn match autoitConst "\$COLOR_WHITE"
syn match autoitConst "\$COLOR_MAROON"
syn match autoitConst "\$COLOR_RED"
syn match autoitConst "\$COLOR_PURPLE"
syn match autoitConst "\$COLOR_FUCHSIA"
syn match autoitConst "\$COLOR_GREEN"
syn match autoitConst "\$COLOR_LIME"
syn match autoitConst "\$COLOR_OLIVE"
syn match autoitConst "\$COLOR_YELLOW"
syn match autoitConst "\$COLOR_NAVY"
syn match autoitConst "\$COLOR_BLUE"
syn match autoitConst "\$COLOR_TEAL"
syn match autoitConst "\$COLOR_AQUA"
" constants - reg value type
syn match autoitConst "\$REG_NONE"
syn match autoitConst "\$REG_SZ"
syn match autoitConst "\$REG_EXPAND_SZ"
syn match autoitConst "\$REG_BINARY"
syn match autoitConst "\$REG_DWORD"
syn match autoitConst "\$REG_DWORD_BIG_ENDIAN"
syn match autoitConst "\$REG_LINK"
syn match autoitConst "\$REG_MULTI_SZ"
syn match autoitConst "\$REG_RESOURCE_LIST"
syn match autoitConst "\$REG_FULL_RESOURCE_DESCRIPTOR"
syn match autoitConst "\$REG_RESOURCE_REQUIREMENTS_LIST"
" guiconstants - events and messages
syn match autoitConst "\$GUI_EVENT_CLOSE"
syn match autoitConst "\$GUI_EVENT_MINIMIZE"
syn match autoitConst "\$GUI_EVENT_RESTORE"
syn match autoitConst "\$GUI_EVENT_MAXIMIZE"
syn match autoitConst "\$GUI_EVENT_PRIMARYDOWN"
syn match autoitConst "\$GUI_EVENT_PRIMARYUP"
syn match autoitConst "\$GUI_EVENT_SECONDARYDOWN"
syn match autoitConst "\$GUI_EVENT_SECONDARYUP"
syn match autoitConst "\$GUI_EVENT_MOUSEMOVE"
syn match autoitConst "\$GUI_EVENT_RESIZED"
syn match autoitConst "\$GUI_EVENT_DROPPED"
syn match autoitConst "\$GUI_RUNDEFMSG"
" guiconstants - state
syn match autoitConst "\$GUI_AVISTOP"
syn match autoitConst "\$GUI_AVISTART"
syn match autoitConst "\$GUI_AVICLOSE"
syn match autoitConst "\$GUI_CHECKED"
syn match autoitConst "\$GUI_INDETERMINATE"
syn match autoitConst "\$GUI_UNCHECKED"
syn match autoitConst "\$GUI_DROPACCEPTED"
syn match autoitConst "\$GUI_DROPNOTACCEPTED"
syn match autoitConst "\$GUI_ACCEPTFILES"
syn match autoitConst "\$GUI_SHOW"
syn match autoitConst "\$GUI_HIDE"
syn match autoitConst "\$GUI_ENABLE"
syn match autoitConst "\$GUI_DISABLE"
syn match autoitConst "\$GUI_FOCUS"
syn match autoitConst "\$GUI_NOFOCUS"
syn match autoitConst "\$GUI_DEFBUTTON"
syn match autoitConst "\$GUI_EXPAND"
syn match autoitConst "\$GUI_ONTOP"
" guiconstants - font
syn match autoitConst "\$GUI_FONTITALIC"
syn match autoitConst "\$GUI_FONTUNDER"
syn match autoitConst "\$GUI_FONTSTRIKE"
" guiconstants - resizing
syn match autoitConst "\$GUI_DOCKAUTO"
syn match autoitConst "\$GUI_DOCKLEFT"
syn match autoitConst "\$GUI_DOCKRIGHT"
syn match autoitConst "\$GUI_DOCKHCENTER"
syn match autoitConst "\$GUI_DOCKTOP"
syn match autoitConst "\$GUI_DOCKBOTTOM"
syn match autoitConst "\$GUI_DOCKVCENTER"
syn match autoitConst "\$GUI_DOCKWIDTH"
syn match autoitConst "\$GUI_DOCKHEIGHT"
syn match autoitConst "\$GUI_DOCKSIZE"
syn match autoitConst "\$GUI_DOCKMENUBAR"
syn match autoitConst "\$GUI_DOCKSTATEBAR"
syn match autoitConst "\$GUI_DOCKALL"
syn match autoitConst "\$GUI_DOCKBORDERS"
" guiconstants - graphic
syn match autoitConst "\$GUI_GR_CLOSE"
syn match autoitConst "\$GUI_GR_LINE"
syn match autoitConst "\$GUI_GR_BEZIER"
syn match autoitConst "\$GUI_GR_MOVE"
syn match autoitConst "\$GUI_GR_COLOR"
syn match autoitConst "\$GUI_GR_RECT"
syn match autoitConst "\$GUI_GR_ELLIPSE"
syn match autoitConst "\$GUI_GR_PIE"
syn match autoitConst "\$GUI_GR_DOT"
syn match autoitConst "\$GUI_GR_PIXEL"
syn match autoitConst "\$GUI_GR_HINT"
syn match autoitConst "\$GUI_GR_REFRESH"
syn match autoitConst "\$GUI_GR_PENSIZE"
syn match autoitConst "\$GUI_GR_NOBKCOLOR"
" guiconstants - control default styles
syn match autoitConst "\$GUI_SS_DEFAULT_AVI"
syn match autoitConst "\$GUI_SS_DEFAULT_BUTTON"
syn match autoitConst "\$GUI_SS_DEFAULT_CHECKBOX"
syn match autoitConst "\$GUI_SS_DEFAULT_COMBO"
syn match autoitConst "\$GUI_SS_DEFAULT_DATE"
syn match autoitConst "\$GUI_SS_DEFAULT_EDIT"
syn match autoitConst "\$GUI_SS_DEFAULT_GRAPHIC"
syn match autoitConst "\$GUI_SS_DEFAULT_GROUP"
syn match autoitConst "\$GUI_SS_DEFAULT_ICON"
syn match autoitConst "\$GUI_SS_DEFAULT_INPUT"
syn match autoitConst "\$GUI_SS_DEFAULT_LABEL"
syn match autoitConst "\$GUI_SS_DEFAULT_LIST"
syn match autoitConst "\$GUI_SS_DEFAULT_LISTVIEW"
syn match autoitConst "\$GUI_SS_DEFAULT_MONTHCAL"
syn match autoitConst "\$GUI_SS_DEFAULT_PIC"
syn match autoitConst "\$GUI_SS_DEFAULT_PROGRESS"
syn match autoitConst "\$GUI_SS_DEFAULT_RADIO"
syn match autoitConst "\$GUI_SS_DEFAULT_SLIDER"
syn match autoitConst "\$GUI_SS_DEFAULT_TAB"
syn match autoitConst "\$GUI_SS_DEFAULT_TREEVIEW"
syn match autoitConst "\$GUI_SS_DEFAULT_UPDOWN"
syn match autoitConst "\$GUI_SS_DEFAULT_GUI"
" guiconstants - background color special flags
syn match autoitConst "\$GUI_BKCOLOR_DEFAULT"
syn match autoitConst "\$GUI_BKCOLOR_LV_ALTERNATE"
syn match autoitConst "\$GUI_BKCOLOR_TRANSPARENT"

" registry constants
syn match autoitConst "\([\"\']\)REG_BINARY\1"
syn match autoitConst "\([\"\']\)REG_SZ\1"
syn match autoitConst "\([\"\']\)REG_MULTI_SZ\1"
syn match autoitConst "\([\"\']\)REG_EXPAND_SZ\1"
syn match autoitConst "\([\"\']\)REG_DWORD\1"

" Define the default highlighting.
" Unused colors: Underlined, Ignore, Error, Todo
hi def link autoitFunction Statement  " yellow/yellow
hi def link autoitKeyword Statement
hi def link autoitOperator Operator
hi def link autoitVarSelector Operator
hi def link autoitComment	Comment  " cyan/blue
hi def link autoitParen Comment
hi def link autoitComma Comment
hi def link autoitBracket Comment
hi def link autoitNumber Constant " magenta/red
hi def link autoitString Constant
hi def link autoitQuote Constant
hi def link autoitIncluded Constant
hi def link autoitCont Special  " red/orange
hi def link autoitDoubledSingles Special
hi def link autoitDoubledDoubles Special
hi def link autoitCommDelimiter PreProc  " blue/magenta
hi def link autoitInclude PreProc
hi def link autoitVariable Identifier  " cyan/cyan
hi def link autoitBuiltin Type  " green/green
hi def link autoitOption Type
hi def link autoitStyle Type
hi def link autoitConst Type
hi def link autoitSend Type

syn sync minlines=50

let &cpo = s:keepcpo
unlet s:keepcpo