annotate runtime/syntax/autohotkey.vim @ 18520:6067fbb46625 v8.1.2254

patch 8.1.2254: MS-Windows: mouse scroll wheel doesn't work in popup Commit: https://github.com/vim/vim/commit/0630bb6580237fe01db22a84885c10f12580f7af Author: Bram Moolenaar <Bram@vim.org> Date: Mon Nov 4 22:52:12 2019 +0100 patch 8.1.2254: MS-Windows: mouse scroll wheel doesn't work in popup Problem: MS-Windows: mouse scroll wheel doesn't work in popup. Solution: Handle mouse wheel events separately. (closes https://github.com/vim/vim/issues/5138)
author Bram Moolenaar <Bram@vim.org>
date Mon, 04 Nov 2019 23:00:04 +0100
parents 4aae8146c21f
children 34c1f4cd0c18
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1187
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
1 " Vim syntax file
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
2 " Language: AutoHotkey script file
10734
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
3 " Maintainer: Michael Wong
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
4 " https://github.com/mmikeww/autohotkey.vim
11347
4aae8146c21f Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 10734
diff changeset
5 " Latest Revision: 2017-04-03
10734
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
6 " Previous Maintainers: SungHyun Nam <goweol@gmail.com>
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
7 " Nikolai Weibull <now@bitwi.se>
1187
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
8
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
9 if exists("b:current_syntax")
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
10 finish
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
11 endif
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
12
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
13 let s:cpo_save = &cpo
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
14 set cpo&vim
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
15
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
16 syn case ignore
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
17
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
18 syn keyword autohotkeyTodo
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
19 \ contained
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
20 \ TODO FIXME XXX NOTE
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
21
10734
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
22 " only these chars are valid as escape sequences: ,%`;nrbtvaf
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
23 " https://autohotkey.com/docs/commands/_EscapeChar.htm
1187
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
24 syn match autohotkeyEscape
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
25 \ display
10734
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
26 \ '`[,%`;nrbtvaf]'
1187
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
27
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
28 syn region autohotkeyString
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
29 \ display
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
30 \ oneline
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
31 \ matchgroup=autohotkeyStringDelimiter
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
32 \ start=+"+
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
33 \ end=+"+
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
34 \ contains=autohotkeyEscape
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
35
10734
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
36 syn match autohotkeyVariable
1187
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
37 \ display
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
38 \ oneline
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
39 \ contains=autohotkeyBuiltinVariable
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
40 \ keepend
10734
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
41 \ '%\S\{-}%'
1187
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
42
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
43 syn keyword autohotkeyBuiltinVariable
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
44 \ A_Space A_Tab
10734
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
45 \ A_WorkingDir A_ScriptDir A_ScriptName A_ScriptFullPath A_ScriptHwnd A_LineNumber
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
46 \ A_LineFile A_ThisFunc A_ThisLabel A_AhkVersion A_AhkPath A_IsUnicode A_IsCompiled A_ExitReason
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
47 \ A_YYYY A_MM A_DD A_MMMM A_MMM A_DDDD A_DDD A_WDay A_YDay A_YWeek A_Hour A_Min
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
48 \ A_Mon A_Year A_MDay A_NumBatchLines
1187
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
49 \ A_Sec A_MSec A_Now A_NowUTC A_TickCount
10734
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
50 \ A_IsSuspended A_IsPaused A_IsCritical A_BatchLines A_TitleMatchMode A_TitleMatchModeSpeed
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
51 \ A_DetectHiddenWindows A_DetectHiddenText A_AutoTrim A_StringCaseSense
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
52 \ A_FileEncoding A_FormatInteger A_FormatFloat A_KeyDelay A_WinDelay A_ControlDelay
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
53 \ A_SendMode A_SendLevel A_StoreCapsLockMode A_KeyDelay A_KeyDelayDuration
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
54 \ A_KeyDelayPlay A_KeyDelayPlayDuration A_MouseDelayPlay
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
55 \ A_MouseDelay A_DefaultMouseSpeed A_RegView A_IconHidden A_IconTip A_IconFile
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
56 \ A_CoordModeToolTip A_CoordModePixel A_CoordModeMouse A_CoordModeCaret A_CoordModeMenu
1187
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
57 \ A_IconNumber
10734
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
58 \ A_TimeIdle A_TimeIdlePhysical A_DefaultGui A_DefaultListView A_DefaultTreeView
1187
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
59 \ A_Gui A_GuiControl A_GuiWidth A_GuiHeight A_GuiX A_GuiY A_GuiEvent
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
60 \ A_GuiControlEvent A_EventInfo
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
61 \ A_ThisMenuItem A_ThisMenu A_ThisMenuItemPos A_ThisHotkey A_PriorHotkey
10734
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
62 \ A_PriorKey A_TimeSinceThisHotkey A_TimeSincePriorHotkey A_EndChar
1187
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
63 \ ComSpec A_Temp A_OSType A_OSVersion A_Language A_ComputerName A_UserName
10734
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
64 \ A_Is64BitOS A_PtrSize
1187
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
65 \ A_WinDir A_ProgramFiles ProgramFiles A_AppData A_AppDataCommon A_Desktop
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
66 \ A_DesktopCommon A_StartMenu A_StartMenuCommon A_Programs
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
67 \ A_ProgramsCommon A_Startup A_StartupCommon A_MyDocuments A_IsAdmin
10734
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
68 \ A_ScreenWidth A_ScreenHeight A_ScreenDPI A_IPAddress1 A_IPAddress2 A_IPAddress3
1187
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
69 \ A_IPAddress4
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
70 \ A_Cursor A_CaretX A_CaretY Clipboard ClipboardAll ErrorLevel A_LastError
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
71 \ A_Index A_LoopFileName A_LoopRegName A_LoopReadLine A_LoopField
10734
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
72 \ A_LoopFileExt A_LoopFileFullPath A_LoopFileLongPath A_LoopFileShortPath
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
73 \ A_LoopFileShortName A_LoopFileDir A_LoopFileTimeModified A_LoopFileTimeCreated
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
74 \ A_LoopFileTimeAccessed A_LoopFileAttrib A_LoopFileSize A_LoopFileSizeKB A_LoopFileSizeMB
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
75 \ A_LoopRegType A_LoopRegKey A_LoopRegSubKey A_LoopRegTimeModified
1187
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
76
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
77 syn match autohotkeyBuiltinVariable
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
78 \ contained
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
79 \ display
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
80 \ '%\d\+%'
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
81
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
82 syn keyword autohotkeyCommand
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
83 \ ClipWait EnvGet EnvSet EnvUpdate
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
84 \ Drive DriveGet DriveSpaceFree FileAppend FileCopy FileCopyDir
10734
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
85 \ FileCreateDir FileCreateShortcut FileDelete FileGetAttrib FileEncoding
1187
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
86 \ FileGetShortcut FileGetSize FileGetTime FileGetVersion FileInstall
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
87 \ FileMove FileMoveDir FileReadLine FileRead FileRecycle FileRecycleEmpty
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
88 \ FileRemoveDir FileSelectFolder FileSelectFile FileSetAttrib FileSetTime
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
89 \ IniDelete IniRead IniWrite SetWorkingDir
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
90 \ SplitPath
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
91 \ Gui GuiControl GuiControlGet IfMsgBox InputBox MsgBox Progress
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
92 \ SplashImage SplashTextOn SplashTextOff ToolTip TrayTip
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
93 \ Hotkey ListHotkeys BlockInput ControlSend ControlSendRaw GetKeyState
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
94 \ KeyHistory KeyWait Input Send SendRaw SendInput SendPlay SendEvent
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
95 \ SendMode SetKeyDelay SetNumScrollCapsLockState SetStoreCapslockMode
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
96 \ EnvAdd EnvDiv EnvMult EnvSub Random SetFormat Transform
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
97 \ AutoTrim BlockInput CoordMode Critical Edit ImageSearch
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
98 \ ListLines ListVars Menu OutputDebug PixelGetColor PixelSearch
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
99 \ SetBatchLines SetEnv SetTimer SysGet Thread Transform URLDownloadToFile
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
100 \ Click ControlClick MouseClick MouseClickDrag MouseGetPos MouseMove
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
101 \ SetDefaultMouseSpeed SetMouseDelay
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
102 \ Process Run RunWait RunAs Shutdown Sleep
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
103 \ RegDelete RegRead RegWrite
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
104 \ SoundBeep SoundGet SoundGetWaveVolume SoundPlay SoundSet
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
105 \ SoundSetWaveVolume
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
106 \ FormatTime IfInString IfNotInString Sort StringCaseSense StringGetPos
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
107 \ StringLeft StringRight StringLower StringUpper StringMid StringReplace
10734
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
108 \ StringSplit StringTrimLeft StringTrimRight StringLen
11347
4aae8146c21f Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 10734
diff changeset
109 \ StrSplit StrReplace Throw
1187
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
110 \ Control ControlClick ControlFocus ControlGet ControlGetFocus
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
111 \ ControlGetPos ControlGetText ControlMove ControlSend ControlSendRaw
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
112 \ ControlSetText Menu PostMessage SendMessage SetControlDelay
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
113 \ WinMenuSelectItem GroupActivate GroupAdd GroupClose GroupDeactivate
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
114 \ DetectHiddenText DetectHiddenWindows SetTitleMatchMode SetWinDelay
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
115 \ StatusBarGetText StatusBarWait WinActivate WinActivateBottom WinClose
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
116 \ WinGet WinGetActiveStats WinGetActiveTitle WinGetClass WinGetPos
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
117 \ WinGetText WinGetTitle WinHide WinKill WinMaximize WinMinimize
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
118 \ WinMinimizeAll WinMinimizeAllUndo WinMove WinRestore WinSet
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
119 \ WinSetTitle WinShow WinWait WinWaitActive WinWaitNotActive WinWaitClose
10734
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
120 \ SetCapsLockState SetNumLockState SetScrollLockState
1187
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
121
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
122 syn keyword autohotkeyFunction
11347
4aae8146c21f Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 10734
diff changeset
123 \ InStr RegExMatch RegExReplace StrLen SubStr Asc Chr Func
1187
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
124 \ DllCall VarSetCapacity WinActive WinExist IsLabel OnMessage
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
125 \ Abs Ceil Exp Floor Log Ln Mod Round Sqrt Sin Cos Tan ASin ACos ATan
10734
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
126 \ FileExist GetKeyState NumGet NumPut StrGet StrPut RegisterCallback
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
127 \ IsFunc Trim LTrim RTrim IsObject Object Array FileOpen
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
128 \ ComObjActive ComObjArray ComObjConnect ComObjCreate ComObjGet
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
129 \ ComObjError ComObjFlags ComObjQuery ComObjType ComObjValue ComObject
11347
4aae8146c21f Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 10734
diff changeset
130 \ Format Exception
1187
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
131
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
132 syn keyword autohotkeyStatement
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
133 \ Break Continue Exit ExitApp Gosub Goto OnExit Pause Return
11347
4aae8146c21f Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 10734
diff changeset
134 \ Suspend Reload new class extends
1187
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
135
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
136 syn keyword autohotkeyRepeat
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
137 \ Loop
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
138
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
139 syn keyword autohotkeyConditional
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
140 \ IfExist IfNotExist If IfEqual IfLess IfGreater Else
10734
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
141 \ IfWinExist IfWinNotExist IfWinActive IfWinNotActive
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
142 \ IfNotEqual IfLessOrEqual IfGreaterOrEqual
11347
4aae8146c21f Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 10734
diff changeset
143 \ while until for in try catch finally
1187
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
144
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
145 syn match autohotkeyPreProcStart
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
146 \ nextgroup=
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
147 \ autohotkeyInclude,
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
148 \ autohotkeyPreProc
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
149 \ skipwhite
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
150 \ display
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
151 \ '^\s*\zs#'
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
152
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
153 syn keyword autohotkeyInclude
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
154 \ contained
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
155 \ Include
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
156 \ IncludeAgain
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
157
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
158 syn keyword autohotkeyPreProc
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
159 \ contained
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
160 \ HotkeyInterval HotKeyModifierTimeout
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
161 \ Hotstring
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
162 \ IfWinActive IfWinNotActive IfWinExist IfWinNotExist
10734
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
163 \ If IfTimeout
1187
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
164 \ MaxHotkeysPerInterval MaxThreads MaxThreadsBuffer MaxThreadsPerHotkey
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
165 \ UseHook InstallKeybdHook InstallMouseHook
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
166 \ KeyHistory
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
167 \ NoTrayIcon SingleInstance
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
168 \ WinActivateForce
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
169 \ AllowSameLineComments
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
170 \ ClipboardTimeout
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
171 \ CommentFlag
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
172 \ ErrorStdOut
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
173 \ EscapeChar
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
174 \ MaxMem
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
175 \ NoEnv
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
176 \ Persistent
10734
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
177 \ LTrim
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
178 \ InputLevel
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
179 \ MenuMaskKey
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
180 \ Warn
1187
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
181
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
182 syn keyword autohotkeyMatchClass
11347
4aae8146c21f Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 10734
diff changeset
183 \ ahk_group ahk_class ahk_id ahk_pid ahk_exe
1187
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
184
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
185 syn match autohotkeyNumbers
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
186 \ display
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
187 \ transparent
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
188 \ contains=
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
189 \ autohotkeyInteger,
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
190 \ autohotkeyFloat
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
191 \ '\<\d\|\.\d'
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
192
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
193 syn match autohotkeyInteger
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
194 \ contained
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
195 \ display
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
196 \ '\d\+\>'
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
197
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
198 syn match autohotkeyInteger
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
199 \ contained
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
200 \ display
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
201 \ '0x\x\+\>'
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
202
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
203 syn match autohotkeyFloat
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
204 \ contained
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
205 \ display
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
206 \ '\d\+\.\d*\|\.\d\+\>'
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
207
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
208 syn keyword autohotkeyType
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
209 \ local
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
210 \ global
10734
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
211 \ static
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
212 \ byref
1187
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
213
1618
46bbe11644e0 updated for version 7.2a
vimboss
parents: 1187
diff changeset
214 syn keyword autohotkeyBoolean
46bbe11644e0 updated for version 7.2a
vimboss
parents: 1187
diff changeset
215 \ true
46bbe11644e0 updated for version 7.2a
vimboss
parents: 1187
diff changeset
216 \ false
46bbe11644e0 updated for version 7.2a
vimboss
parents: 1187
diff changeset
217
10734
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
218 syn match autohotkeyHotkey
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
219 \ contains=autohotkeyKey,
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
220 \ autohotkeyHotkeyDelimiter
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
221 \ display
11347
4aae8146c21f Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 10734
diff changeset
222 \ '^\s*\S*\%( Up\)\?::'
10734
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
223
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
224 syn match autohotkeyKey
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
225 \ contained
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
226 \ display
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
227 \ '^.\{-}'
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
228
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
229 syn match autohotkeyDelimiter
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
230 \ contained
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
231 \ display
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
232 \ '::'
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
233
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
234 " allowable hotstring options:
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
235 " https://autohotkey.com/docs/Hotstrings.htm
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
236 syn match autohotkeyHotstringDefinition
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
237 \ contains=autohotkeyHotstring,
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
238 \ autohotkeyHotstringDelimiter
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
239 \ display
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
240 \ '^\s*:\%([*?]\|[BORZ]0\?\|C[01]\?\|K\d\+\|P\d\+\|S[IPE]\)*:.\{-}::'
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
241
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
242 syn match autohotkeyHotstring
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
243 \ contained
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
244 \ display
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
245 \ '.\{-}'
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
246
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
247 syn match autohotkeyHotstringDelimiter
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
248 \ contained
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
249 \ display
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
250 \ '::'
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
251
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
252 syn match autohotkeyHotstringDelimiter
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
253 \ contains=autohotkeyHotstringOptions
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
254 \ contained
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
255 \ display
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
256 \ ':\%([*?]\|[BORZ]0\?\|C[01]\?\|K\d\+\|P\d\+\|S[IPE]\)*:'
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
257
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
258 syn match autohotkeyHotstringOptions
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
259 \ contained
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
260 \ display
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
261 \ '\%([*?]\|[BORZ]0\?\|C[01]\?\|K\d\+\|P\d\+\|S[IPE]\)*'
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
262
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
263 syn cluster autohotkeyCommentGroup
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
264 \ contains=
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
265 \ autohotkeyTodo,
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
266 \ @Spell
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
267
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
268 syn match autohotkeyComment
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
269 \ display
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
270 \ contains=@autohotkeyCommentGroup
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
271 \ '\%(^;\|\s\+;\).*$'
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
272
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
273 syn region autohotkeyComment
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
274 \ contains=@autohotkeyCommentGroup
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
275 \ matchgroup=autohotkeyCommentStart
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
276 \ start='^\s*/\*'
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
277 \ end='^\s*\*/'
523cd59d6db0 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 7183
diff changeset
278
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1618
diff changeset
279 " TODO: Shouldn't we look for g:, b:, variables before defaulting to
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1618
diff changeset
280 " something?
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1618
diff changeset
281 if exists("g:autohotkey_syntax_sync_minlines")
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1618
diff changeset
282 let b:autohotkey_syntax_sync_minlines = g:autohotkey_syntax_sync_minlines
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1618
diff changeset
283 else
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1618
diff changeset
284 let b:autohotkey_syntax_sync_minlines = 50
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1618
diff changeset
285 endif
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1618
diff changeset
286 exec "syn sync ccomment autohotkeyComment minlines=" . b:autohotkey_syntax_sync_minlines
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1618
diff changeset
287
1187
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
288 hi def link autohotkeyTodo Todo
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
289 hi def link autohotkeyComment Comment
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
290 hi def link autohotkeyCommentStart autohotkeyComment
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
291 hi def link autohotkeyEscape Special
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
292 hi def link autohotkeyHotkey Type
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
293 hi def link autohotkeyKey Type
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
294 hi def link autohotkeyDelimiter Delimiter
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
295 hi def link autohotkeyHotstringDefinition Type
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
296 hi def link autohotkeyHotstring Type
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
297 hi def link autohotkeyHotstringDelimiter autohotkeyDelimiter
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
298 hi def link autohotkeyHotstringOptions Special
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
299 hi def link autohotkeyString String
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
300 hi def link autohotkeyStringDelimiter autohotkeyString
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
301 hi def link autohotkeyVariable Identifier
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
302 hi def link autohotkeyVariableDelimiter autohotkeyVariable
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
303 hi def link autohotkeyBuiltinVariable Macro
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
304 hi def link autohotkeyCommand Keyword
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
305 hi def link autohotkeyFunction Function
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
306 hi def link autohotkeyStatement autohotkeyCommand
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
307 hi def link autohotkeyRepeat Repeat
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
308 hi def link autohotkeyConditional Conditional
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
309 hi def link autohotkeyPreProcStart PreProc
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
310 hi def link autohotkeyInclude Include
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
311 hi def link autohotkeyPreProc PreProc
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
312 hi def link autohotkeyMatchClass Typedef
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
313 hi def link autohotkeyNumber Number
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
314 hi def link autohotkeyInteger autohotkeyNumber
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
315 hi def link autohotkeyFloat autohotkeyNumber
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
316 hi def link autohotkeyType Type
1618
46bbe11644e0 updated for version 7.2a
vimboss
parents: 1187
diff changeset
317 hi def link autohotkeyBoolean Boolean
1187
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
318
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
319 let b:current_syntax = "autohotkey"
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
320
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
321 let &cpo = s:cpo_save
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
322 unlet s:cpo_save