annotate runtime/syntax/autohotkey.vim @ 9169:0ea97a753a2d v7.4.1868

commit https://github.com/vim/vim/commit/b89a25f17e274dc308c584ea69a129ffbb26bc3d Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jun 1 23:08:39 2016 +0200 patch 7.4.1868 Problem: Setting really_exiting causes memory leaks to be reported. Solution: Add the in_free_all_mem flag.
author Christian Brabandt <cb@256bit.org>
date Wed, 01 Jun 2016 23:15:06 +0200
parents ffad29dc7eee
children 523cd59d6db0
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
7183
ffad29dc7eee commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents: 1698
diff changeset
3 " Maintainer: SungHyun Nam <goweol@gmail.com>
ffad29dc7eee commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents: 1698
diff changeset
4 " Previous Maintainer: Nikolai Weibull <now@bitwi.se>
ffad29dc7eee commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents: 1698
diff changeset
5 " Latest Revision: 2015-10-29
1187
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
6
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
7 if exists("b:current_syntax")
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
8 finish
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
9 endif
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
10
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
11 let s:cpo_save = &cpo
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
12 set cpo&vim
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
13
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
14 syn case ignore
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
15
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
16 syn keyword autohotkeyTodo
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
17 \ contained
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
18 \ TODO FIXME XXX NOTE
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
19
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
20 syn cluster autohotkeyCommentGroup
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
21 \ contains=
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
22 \ autohotkeyTodo,
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
23 \ @Spell
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
24
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
25 syn match autohotkeyComment
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
26 \ display
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
27 \ contains=@autohotkeyCommentGroup
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
28 \ '`\@<!;.*$'
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
29
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
30 syn region autohotkeyComment
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
31 \ contains=@autohotkeyCommentGroup
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
32 \ matchgroup=autohotkeyCommentStart
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
33 \ start='/\*'
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
34 \ end='\*/'
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
35
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
36 syn match autohotkeyEscape
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
37 \ display
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
38 \ '`.'
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
39
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
40 syn match autohotkeyHotkey
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
41 \ contains=autohotkeyKey,
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
42 \ autohotkeyHotkeyDelimiter
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
43 \ display
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
44 \ '^.\{-}::'
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
45
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
46 syn match autohotkeyKey
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
47 \ contained
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
48 \ display
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
49 \ '^.\{-}'
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
50
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
51 syn match autohotkeyDelimiter
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
52 \ contained
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
53 \ display
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
54 \ '::'
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
55
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
56 syn match autohotkeyHotstringDefinition
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
57 \ contains=autohotkeyHotstring,
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
58 \ autohotkeyHotstringDelimiter
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
59 \ display
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
60 \ '^:\%(B0\|C1\|K\d\+\|P\d\+\|S[IPE]\|Z\d\=\|[*?COR]\)*:.\{-}::'
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
61
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
62 syn match autohotkeyHotstring
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
63 \ contained
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
64 \ display
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
65 \ '.\{-}'
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
66
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
67 syn match autohotkeyHotstringDelimiter
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
68 \ contained
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
69 \ display
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
70 \ '::'
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
71
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
72 syn match autohotkeyHotstringDelimiter
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
73 \ contains=autohotkeyHotstringOptions
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
74 \ contained
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
75 \ display
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
76 \ ':\%(B0\|C1\|K\d\+\|P\d\+\|S[IPE]\|Z\d\=\|[*?COR]\):'
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
77
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
78 syn match autohotkeyHotstringOptions
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
79 \ contained
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
80 \ display
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
81 \ '\%(B0\|C1\|K\d\+\|P\d\+\|S[IPE]\|Z\d\=\|[*?COR]\)'
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
82
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
83 syn region autohotkeyString
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
84 \ display
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
85 \ oneline
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
86 \ matchgroup=autohotkeyStringDelimiter
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
87 \ start=+"+
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
88 \ end=+"+
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
89 \ contains=autohotkeyEscape
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
90
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
91 syn region autohotkeyVariable
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
92 \ display
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
93 \ oneline
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
94 \ contains=autohotkeyBuiltinVariable
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
95 \ matchgroup=autohotkeyVariableDelimiter
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
96 \ start="%"
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
97 \ end="%"
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
98 \ keepend
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
99
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
100 syn keyword autohotkeyBuiltinVariable
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
101 \ A_Space A_Tab
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
102 \ A_WorkingDir A_ScriptDir A_ScriptName A_ScriptFullPath A_LineNumber
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
103 \ A_LineFile A_AhkVersion A_AhkPAth A_IsCompiled A_ExitReason
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
104 \ A_YYYY A_MM A_DD A_MMMM A_MMM A_DDDD A_DDD A_WDay A_YWeek A_Hour A_Min
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
105 \ A_Sec A_MSec A_Now A_NowUTC A_TickCount
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
106 \ A_IsSuspended A_BatchLines A_TitleMatchMode A_TitleMatchModeSpeed
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
107 \ A_DetectHiddenWindows A_DetectHiddenText A_AutoTrim A_STringCaseSense
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
108 \ A_FormatInteger A_FormatFloat A_KeyDelay A_WinDelay A_ControlDelay
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
109 \ A_MouseDelay A_DefaultMouseSpeed A_IconHidden A_IconTip A_IconFile
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
110 \ A_IconNumber
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
111 \ A_TimeIdle A_TimeIdlePhysical
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
112 \ A_Gui A_GuiControl A_GuiWidth A_GuiHeight A_GuiX A_GuiY A_GuiEvent
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
113 \ A_GuiControlEvent A_EventInfo
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
114 \ A_ThisMenuItem A_ThisMenu A_ThisMenuItemPos A_ThisHotkey A_PriorHotkey
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
115 \ A_TimeSinceThisHotkey A_TimeSincePriorHotkey A_EndChar
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
116 \ ComSpec A_Temp A_OSType A_OSVersion A_Language A_ComputerName A_UserName
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
117 \ A_WinDir A_ProgramFiles ProgramFiles A_AppData A_AppDataCommon A_Desktop
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
118 \ A_DesktopCommon A_StartMenu A_StartMenuCommon A_Programs
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
119 \ A_ProgramsCommon A_Startup A_StartupCommon A_MyDocuments A_IsAdmin
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
120 \ A_ScreenWidth A_ScreenHeight A_IPAddress1 A_IPAddress2 A_IPAddress3
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
121 \ A_IPAddress4
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
122 \ A_Cursor A_CaretX A_CaretY Clipboard ClipboardAll ErrorLevel A_LastError
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
123 \ A_Index A_LoopFileName A_LoopRegName A_LoopReadLine A_LoopField
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
124
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
125 syn match autohotkeyBuiltinVariable
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
126 \ contained
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
127 \ display
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
128 \ '%\d\+%'
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
129
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
130 syn keyword autohotkeyCommand
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
131 \ ClipWait EnvGet EnvSet EnvUpdate
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
132 \ Drive DriveGet DriveSpaceFree FileAppend FileCopy FileCopyDir
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
133 \ FileCreateDir FileCreateShortcut FileDelete FileGetAttrib
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
134 \ FileGetShortcut FileGetSize FileGetTime FileGetVersion FileInstall
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
135 \ FileMove FileMoveDir FileReadLine FileRead FileRecycle FileRecycleEmpty
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
136 \ FileRemoveDir FileSelectFolder FileSelectFile FileSetAttrib FileSetTime
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
137 \ IniDelete IniRead IniWrite SetWorkingDir
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
138 \ SplitPath
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
139 \ Gui GuiControl GuiControlGet IfMsgBox InputBox MsgBox Progress
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
140 \ SplashImage SplashTextOn SplashTextOff ToolTip TrayTip
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
141 \ Hotkey ListHotkeys BlockInput ControlSend ControlSendRaw GetKeyState
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
142 \ KeyHistory KeyWait Input Send SendRaw SendInput SendPlay SendEvent
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
143 \ SendMode SetKeyDelay SetNumScrollCapsLockState SetStoreCapslockMode
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
144 \ EnvAdd EnvDiv EnvMult EnvSub Random SetFormat Transform
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
145 \ AutoTrim BlockInput CoordMode Critical Edit ImageSearch
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
146 \ ListLines ListVars Menu OutputDebug PixelGetColor PixelSearch
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
147 \ SetBatchLines SetEnv SetTimer SysGet Thread Transform URLDownloadToFile
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
148 \ Click ControlClick MouseClick MouseClickDrag MouseGetPos MouseMove
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
149 \ SetDefaultMouseSpeed SetMouseDelay
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
150 \ Process Run RunWait RunAs Shutdown Sleep
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
151 \ RegDelete RegRead RegWrite
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
152 \ SoundBeep SoundGet SoundGetWaveVolume SoundPlay SoundSet
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
153 \ SoundSetWaveVolume
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
154 \ FormatTime IfInString IfNotInString Sort StringCaseSense StringGetPos
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
155 \ StringLeft StringRight StringLower StringUpper StringMid StringReplace
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
156 \ StringSplit StringTrimLeft StringTrimRight
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
157 \ Control ControlClick ControlFocus ControlGet ControlGetFocus
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
158 \ ControlGetPos ControlGetText ControlMove ControlSend ControlSendRaw
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
159 \ ControlSetText Menu PostMessage SendMessage SetControlDelay
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
160 \ WinMenuSelectItem GroupActivate GroupAdd GroupClose GroupDeactivate
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
161 \ DetectHiddenText DetectHiddenWindows SetTitleMatchMode SetWinDelay
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
162 \ StatusBarGetText StatusBarWait WinActivate WinActivateBottom WinClose
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
163 \ WinGet WinGetActiveStats WinGetActiveTitle WinGetClass WinGetPos
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
164 \ WinGetText WinGetTitle WinHide WinKill WinMaximize WinMinimize
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
165 \ WinMinimizeAll WinMinimizeAllUndo WinMove WinRestore WinSet
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
166 \ WinSetTitle WinShow WinWait WinWaitActive WinWaitNotActive WinWaitClose
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
167
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
168 syn keyword autohotkeyFunction
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
169 \ InStr RegExMatch RegExReplace StrLen SubStr Asc Chr
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
170 \ DllCall VarSetCapacity WinActive WinExist IsLabel OnMessage
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
171 \ Abs Ceil Exp Floor Log Ln Mod Round Sqrt Sin Cos Tan ASin ACos ATan
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
172 \ FileExist GetKeyState
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
173
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
174 syn keyword autohotkeyStatement
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
175 \ Break Continue Exit ExitApp Gosub Goto OnExit Pause Return
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
176 \ Suspend Reload
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
177
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
178 syn keyword autohotkeyRepeat
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
179 \ Loop
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
180
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
181 syn keyword autohotkeyConditional
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
182 \ IfExist IfNotExist If IfEqual IfLess IfGreater Else
7183
ffad29dc7eee commit https://github.com/vim/vim/commit/a0f849ee40cbea3c889345256786b640b0becca2
Christian Brabandt <cb@256bit.org>
parents: 1698
diff changeset
183 \ IfWinExist IfWinNotExist
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 autohotkeyPreProcStart
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
186 \ nextgroup=
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
187 \ autohotkeyInclude,
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
188 \ autohotkeyPreProc
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
189 \ skipwhite
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
190 \ display
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
191 \ '^\s*\zs#'
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
192
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
193 syn keyword autohotkeyInclude
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
194 \ contained
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
195 \ Include
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
196 \ IncludeAgain
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
197
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
198 syn keyword autohotkeyPreProc
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
199 \ contained
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
200 \ HotkeyInterval HotKeyModifierTimeout
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
201 \ Hotstring
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
202 \ IfWinActive IfWinNotActive IfWinExist IfWinNotExist
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
203 \ MaxHotkeysPerInterval MaxThreads MaxThreadsBuffer MaxThreadsPerHotkey
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
204 \ UseHook InstallKeybdHook InstallMouseHook
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
205 \ KeyHistory
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
206 \ NoTrayIcon SingleInstance
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
207 \ WinActivateForce
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
208 \ AllowSameLineComments
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
209 \ ClipboardTimeout
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
210 \ CommentFlag
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
211 \ ErrorStdOut
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
212 \ EscapeChar
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
213 \ MaxMem
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
214 \ NoEnv
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
215 \ Persistent
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
216
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
217 syn keyword autohotkeyMatchClass
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
218 \ ahk_group ahk_class ahk_id ahk_pid
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
219
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
220 syn match autohotkeyNumbers
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
221 \ display
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
222 \ transparent
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
223 \ contains=
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
224 \ autohotkeyInteger,
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
225 \ autohotkeyFloat
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
226 \ '\<\d\|\.\d'
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
227
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
228 syn match autohotkeyInteger
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
229 \ contained
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
230 \ display
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
231 \ '\d\+\>'
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
232
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
233 syn match autohotkeyInteger
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
234 \ contained
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
235 \ display
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
236 \ '0x\x\+\>'
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
237
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
238 syn match autohotkeyFloat
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
239 \ contained
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
240 \ display
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
241 \ '\d\+\.\d*\|\.\d\+\>'
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
242
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
243 syn keyword autohotkeyType
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
244 \ local
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
245 \ global
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
246
1618
46bbe11644e0 updated for version 7.2a
vimboss
parents: 1187
diff changeset
247 syn keyword autohotkeyBoolean
46bbe11644e0 updated for version 7.2a
vimboss
parents: 1187
diff changeset
248 \ true
46bbe11644e0 updated for version 7.2a
vimboss
parents: 1187
diff changeset
249 \ false
46bbe11644e0 updated for version 7.2a
vimboss
parents: 1187
diff changeset
250
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1618
diff changeset
251 " TODO: Shouldn't we look for g:, b:, variables before defaulting to
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1618
diff changeset
252 " something?
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1618
diff changeset
253 if exists("g:autohotkey_syntax_sync_minlines")
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1618
diff changeset
254 let b:autohotkey_syntax_sync_minlines = g:autohotkey_syntax_sync_minlines
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1618
diff changeset
255 else
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1618
diff changeset
256 let b:autohotkey_syntax_sync_minlines = 50
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1618
diff changeset
257 endif
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1618
diff changeset
258 exec "syn sync ccomment autohotkeyComment minlines=" . b:autohotkey_syntax_sync_minlines
f4f8014d516e updated for version 7.2c-000
vimboss
parents: 1618
diff changeset
259
1187
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
260 hi def link autohotkeyTodo Todo
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
261 hi def link autohotkeyComment Comment
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
262 hi def link autohotkeyCommentStart autohotkeyComment
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
263 hi def link autohotkeyEscape Special
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
264 hi def link autohotkeyHotkey Type
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
265 hi def link autohotkeyKey Type
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
266 hi def link autohotkeyDelimiter Delimiter
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
267 hi def link autohotkeyHotstringDefinition Type
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
268 hi def link autohotkeyHotstring Type
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
269 hi def link autohotkeyHotstringDelimiter autohotkeyDelimiter
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
270 hi def link autohotkeyHotstringOptions Special
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
271 hi def link autohotkeyString String
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
272 hi def link autohotkeyStringDelimiter autohotkeyString
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
273 hi def link autohotkeyVariable Identifier
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
274 hi def link autohotkeyVariableDelimiter autohotkeyVariable
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
275 hi def link autohotkeyBuiltinVariable Macro
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
276 hi def link autohotkeyCommand Keyword
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
277 hi def link autohotkeyFunction Function
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
278 hi def link autohotkeyStatement autohotkeyCommand
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
279 hi def link autohotkeyRepeat Repeat
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
280 hi def link autohotkeyConditional Conditional
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
281 hi def link autohotkeyPreProcStart PreProc
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
282 hi def link autohotkeyInclude Include
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
283 hi def link autohotkeyPreProc PreProc
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
284 hi def link autohotkeyMatchClass Typedef
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
285 hi def link autohotkeyNumber Number
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
286 hi def link autohotkeyInteger autohotkeyNumber
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
287 hi def link autohotkeyFloat autohotkeyNumber
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
288 hi def link autohotkeyType Type
1618
46bbe11644e0 updated for version 7.2a
vimboss
parents: 1187
diff changeset
289 hi def link autohotkeyBoolean Boolean
1187
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
290
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
291 let b:current_syntax = "autohotkey"
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
292
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
293 let &cpo = s:cpo_save
f89c43568067 updated for version 7.1b
vimboss
parents:
diff changeset
294 unlet s:cpo_save