annotate runtime/syntax/autohotkey.vim @ 2045:e77e3c11f507 v7.2.331

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