robin/laufey

git clone https://git.robinwobin.dev/robin/laufey

zeertzjqMerge pull request #40141 from zeertzjq/vim-1fa6fed9aa33a37d8

master
38.4 KiB762 linesraw
1" Vim syntax file
2" Language:		NSIS script, for version of NSIS 3.12 and later
3" Maintainer:		Ken Takata
4" URL:			https://github.com/k-takata/vim-nsis
5" Previous Maintainer:	Alex Jakushev <Alex.Jakushev@kemek.lt>
6" Last Change:		2026-06-06
7
8" quit when a syntax file was already loaded
9if exists("b:current_syntax")
10  finish
11endif
12
13let s:cpo_save = &cpo
14set cpo&vim
15
16syn case ignore
17
18
19"Pseudo definitions
20syn match nsisLine nextgroup=@nsisPseudoStatement skipwhite "^"
21syn cluster nsisPseudoStatement	contains=nsisFirstComment,nsisLocalLabel,nsisGlobalLabel
22syn cluster nsisPseudoStatement add=nsisDefine,nsisPreCondit,nsisMacro,nsisInclude,nsisSystem
23syn cluster nsisPseudoStatement add=nsisAttribute,nsisCompiler,nsisVersionInfo,nsisInstruction,nsisStatement
24
25"COMMENTS (4.1)
26syn keyword nsisTodo	todo attention note fixme readme
27syn region nsisComment	start="[;#]" end="$" contains=nsisTodo,nsisLineContinuation,@Spell oneline
28syn region nsisComment	start=".\@1<=/\*" end="\*/" contains=nsisTodo,@Spell
29syn region nsisFirstComment  start="/\*" end="\*/" contained contains=nsisTodo,@Spell skipwhite
30			\ nextgroup=@nsisPseudoStatement
31
32syn match nsisLineContinuation	"\\$"
33
34"STRINGS (4.1)
35syn region nsisString	start=/"/ end=/"/ contains=@nsisStringItems,@Spell
36syn region nsisString	start=/'/ end=/'/ contains=@nsisStringItems,@Spell
37syn region nsisString	start=/`/ end=/`/ contains=@nsisStringItems,@Spell
38
39syn cluster nsisStringItems	contains=nsisPreprocSubst,nsisPreprocLangStr,nsisPreprocEnvVar,nsisUserVar,nsisSysVar,nsisRegistry,nsisLineContinuation
40
41"NUMBERS (4.1)
42syn match nsisNumber		"\<[1-9]\d*\>"
43syn match nsisNumber		"\<0x\x\+\>"
44syn match nsisNumber		"\<0\o*\>"
45
46"STRING REPLACEMENT (5.4, 4.9.15.2, 5.3.1)
47syn region nsisPreprocSubst	start="\${" end="}" contains=nsisPreprocSubst,nsisPreprocLangStr,nsisPreprocEnvVar
48syn region nsisPreprocLangStr	start="\$(" end=")" contains=nsisPreprocSubst,nsisPreprocLangStr,nsisPreprocEnvVar
49syn region nsisPreprocEnvVar	start="\$%" end="%" contains=nsisPreprocSubst,nsisPreprocLangStr,nsisPreprocEnvVar
50
51"VARIABLES (4.2.2)
52syn match nsisUserVar		"$\d"
53syn match nsisUserVar		"$R\d"
54syn match nsisSysVar		"$INSTDIR"
55syn match nsisSysVar		"$OUTDIR"
56syn match nsisSysVar		"$CMDLINE"
57syn match nsisSysVar		"$LANGUAGE"
58"CONSTANTS (4.2.3)
59syn match nsisSysVar		"$PROGRAMFILES"
60syn match nsisSysVar		"$PROGRAMFILES32"
61syn match nsisSysVar		"$PROGRAMFILES64"
62syn match nsisSysVar		"$COMMONFILES"
63syn match nsisSysVar		"$COMMONFILES32"
64syn match nsisSysVar		"$COMMONFILES64"
65syn match nsisSysVar		"$DESKTOP"
66syn match nsisSysVar		"$EXEDIR"
67syn match nsisSysVar		"$EXEFILE"
68syn match nsisSysVar		"$EXEPATH"
69syn match nsisSysVar		"${NSISDIR}"
70syn match nsisSysVar		"$WINDIR"
71syn match nsisSysVar		"$SYSDIR"
72syn match nsisSysVar		"$TEMP"
73syn match nsisSysVar		"$STARTMENU"
74syn match nsisSysVar		"$SMPROGRAMS"
75syn match nsisSysVar		"$SMSTARTUP"
76syn match nsisSysVar		"$QUICKLAUNCH"
77syn match nsisSysVar		"$DOCUMENTS"
78syn match nsisSysVar		"$SENDTO"
79syn match nsisSysVar		"$RECENT"
80syn match nsisSysVar		"$FAVORITES"
81syn match nsisSysVar		"$MUSIC"
82syn match nsisSysVar		"$PICTURES"
83syn match nsisSysVar		"$VIDEOS"
84syn match nsisSysVar		"$NETHOOD"
85syn match nsisSysVar		"$FONTS"
86syn match nsisSysVar		"$TEMPLATES"
87syn match nsisSysVar		"$APPDATA"
88syn match nsisSysVar		"$LOCALAPPDATA"
89syn match nsisSysVar		"$PRINTHOOD"
90syn match nsisSysVar		"$INTERNET_CACHE"
91syn match nsisSysVar		"$COOKIES"
92syn match nsisSysVar		"$HISTORY"
93syn match nsisSysVar		"$PROFILE"
94syn match nsisSysVar		"$ADMINTOOLS"
95syn match nsisSysVar		"$RESOURCES"
96syn match nsisSysVar		"$RESOURCES_LOCALIZED"
97syn match nsisSysVar		"$CDBURN_AREA"
98syn match nsisSysVar		"$HWNDPARENT"
99syn match nsisSysVar		"$PLUGINSDIR"
100syn match nsisSysVar		"$\%(USERTEMPLATES\|USERSTARTMENU\|USERSMPROGRAMS\|USERDESKTOP\)"
101syn match nsisSysVar		"$\%(COMMONTEMPLATES\|COMMONSTARTMENU\|COMMONSMPROGRAMS\|COMMONDESKTOP\|COMMONPROGRAMDATA\)"
102syn match nsisSysVar		"$\\r"
103syn match nsisSysVar		"$\\n"
104syn match nsisSysVar		"$\\t"
105syn match nsisSysVar		"$\$"
106syn match nsisSysVar		"$\\["'`]"
107
108"LABELS (4.3)
109syn match nsisLocalLabel	contained "[^-+!$0-9;"'#. \t/*][^ \t:;#]*:\ze\%($\|[ \t;#]\|\/\*\)"
110syn match nsisGlobalLabel	contained "\.[^-+!$0-9;"'# \t/*][^ \t:;#]*:\ze\%($\|[ \t;#]\|\/\*\)"
111
112"CONSTANTS
113syn keyword nsisBoolean		contained true false
114syn keyword nsisOnOff		contained on off
115
116syn keyword nsisRegistry	contained HKCR HKLM HKCU HKU HKCC HKDD HKPD SHCTX
117syn keyword nsisRegistry	contained HKCR32 HKCR64 HKCU32 HKCU64 HKLM32 HKLM64
118syn keyword nsisRegistry	contained HKEY_CLASSES_ROOT HKEY_LOCAL_MACHINE HKEY_CURRENT_USER HKEY_USERS
119syn keyword nsisRegistry	contained HKEY_CLASSES_ROOT32 HKEY_CLASSES_ROOT64
120syn keyword nsisRegistry	contained HKEY_CURRENT_USER32 HKEY_CURRENT_USER64
121syn keyword nsisRegistry	contained HKEY_LOCAL_MACHINE32 HKEY_LOCAL_MACHINE64
122syn keyword nsisRegistry	contained HKEY_CURRENT_CONFIG HKEY_DYN_DATA HKEY_PERFORMANCE_DATA
123syn keyword nsisRegistry	contained SHELL_CONTEXT
124
125
126" common options
127syn cluster nsisAnyOpt		contains=nsisComment,nsisLineContinuation,nsisPreprocSubst,nsisPreprocLangStr,nsisPreprocEnvVar,nsisUserVar,nsisSysVar,nsisString,nsisNumber
128syn region nsisBooleanOpt	contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisBoolean
129syn region nsisOnOffOpt		contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisOnOff
130syn region nsisLangOpt		contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisLangKwd
131syn match nsisLangKwd		contained "/LANG\>"
132syn region nsisFontOpt		contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisFontKwd
133syn match nsisFontKwd		contained "/\%(ITALIC\|UNDERLINE\|STRIKE\)\>"
134
135"STATEMENTS - pages (4.5)
136syn keyword nsisStatement	contained Page UninstPage nextgroup=nsisPageOpt skipwhite
137syn region nsisPageOpt		contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisPageKwd
138syn keyword nsisPageKwd		contained custom license components directory instfiles uninstConfirm
139syn match nsisPageKwd		contained "/ENABLECANCEL\>"
140
141syn keyword nsisStatement	contained PageEx nextgroup=nsisPageExOpt skipwhite
142syn region nsisPageExOpt	contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisPageExKwd
143syn match nsisPageExKwd		contained "\<\%(un\.\)\?\%(custom\|license\|components\|directory\|instfiles\|uninstConfirm\)\>"
144
145syn keyword nsisStatement	contained PageExEnd PageCallbacks
146
147"STATEMENTS - sections (4.6.1)
148syn keyword nsisStatement	contained AddSize SectionEnd SectionGroupEnd
149
150syn keyword nsisStatement	contained Section nextgroup=nsisSectionOpt skipwhite
151syn region nsisSectionOpt	contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisSectionKwd
152syn match nsisSectionKwd	contained "/o\>"
153
154syn keyword nsisStatement	contained SectionInstType SectionIn nextgroup=nsisSectionInOpt skipwhite
155syn region nsisSectionInOpt	contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisSectionInKwd
156syn keyword nsisSectionInKwd	contained RO
157
158syn keyword nsisStatement	contained SectionGroup nextgroup=nsisSectionGroupOpt skipwhite
159syn region nsisSectionGroupOpt	contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisSectionGroupKwd
160syn match nsisSectionGroupKwd	contained "/e\>"
161
162"STATEMENTS - functions (4.7.1)
163syn keyword nsisStatement	contained Function FunctionEnd
164
165
166"STATEMENTS - LogicLib.nsh
167syn match nsisStatement		"${If}"
168syn match nsisStatement		"${IfNot}"
169syn match nsisStatement		"${Unless}"
170syn match nsisStatement		"${ElseIf}"
171syn match nsisStatement		"${ElseIfNot}"
172syn match nsisStatement		"${ElseUnless}"
173syn match nsisStatement		"${Else}"
174syn match nsisStatement		"${EndIf}"
175syn match nsisStatement		"${EndUnless}"
176syn match nsisStatement		"${AndIf}"
177syn match nsisStatement		"${AndIfNot}"
178syn match nsisStatement		"${AndUnless}"
179syn match nsisStatement		"${OrIf}"
180syn match nsisStatement		"${OrIfNot}"
181syn match nsisStatement		"${OrUnless}"
182syn match nsisStatement		"${IfThen}"
183syn match nsisStatement		"${IfNotThen}"
184syn match nsisStatement		"${||\?}" nextgroup=@nsisPseudoStatement skipwhite
185syn match nsisStatement		"${IfCmd}" nextgroup=@nsisPseudoStatement skipwhite
186syn match nsisStatement		"${Select}"
187syn match nsisStatement		"${Case}"
188syn match nsisStatement		"${Case[2-5]}"
189syn match nsisStatement		"${CaseElse}"
190syn match nsisStatement		"${Default}"
191syn match nsisStatement		"${EndSelect}"
192syn match nsisStatement		"${Switch}"
193syn match nsisStatement		"${EndSwitch}"
194syn match nsisStatement		"${Break}"
195syn match nsisStatement		"${Do}"
196syn match nsisStatement		"${DoWhile}"
197syn match nsisStatement		"${DoUntil}"
198syn match nsisStatement		"${ExitDo}"
199syn match nsisStatement		"${Continue}"
200syn match nsisStatement		"${Loop}"
201syn match nsisStatement		"${LoopWhile}"
202syn match nsisStatement		"${LoopUntil}"
203syn match nsisStatement		"${For}"
204syn match nsisStatement		"${ForEach}"
205syn match nsisStatement		"${ExitFor}"
206syn match nsisStatement		"${Next}"
207syn match nsisStatement		"${While}"
208syn match nsisStatement		"${ExitWhile}"
209syn match nsisStatement		"${EndWhile}"
210"STATEMENTS - Memento.nsh
211syn match nsisStatement		"${MementoSection}"
212syn match nsisStatement		"${MementoSectionEnd}"
213syn match nsisStatement		"${MementoUnselectedSection}"
214syn match nsisStatement		"${MementoSectionDone}"
215syn match nsisStatement		"${MementoSectionRestore}"
216syn match nsisStatement		"${MementoSectionSave}"
217
218
219"USER VARIABLES (4.2.1)
220syn keyword nsisInstruction	contained Var nextgroup=nsisVarOpt skipwhite
221syn region nsisVarOpt		contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisVarKwd
222syn match nsisVarKwd		contained "/GLOBAL\>"
223
224"INSTALLER ATTRIBUTES (4.8.1)
225syn keyword nsisAttribute	contained Caption ChangeUI CheckBitmap CompletedText ComponentText
226syn keyword nsisAttribute	contained DetailsButtonText DirText DirVar
227syn keyword nsisAttribute	contained FileErrorText Icon InstallButtonText
228syn keyword nsisAttribute	contained InstallDir InstProgressFlags
229syn keyword nsisAttribute	contained LicenseData LicenseText
230syn keyword nsisAttribute	contained MiscButtonText Name OutFile
231syn keyword nsisAttribute	contained SpaceTexts SubCaption UninstallButtonText UninstallCaption
232syn keyword nsisAttribute	contained UninstallIcon UninstallSubCaption UninstallText
233
234syn keyword nsisAttribute	contained AddBrandingImage nextgroup=nsisAddBrandingImageOpt skipwhite
235syn region nsisAddBrandingImageOpt  contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisAddBrandingImageKwd
236syn keyword nsisAddBrandingImageKwd contained left right top bottom width height
237
238syn keyword nsisAttribute	contained nextgroup=nsisBooleanOpt skipwhite
239			\ AllowRootDirInstall AutoCloseWindow
240
241syn keyword nsisAttribute	contained BGFont nextgroup=nsisFontOpt skipwhite
242
243syn keyword nsisAttribute	contained BGGradient nextgroup=nsisBGGradientOpt skipwhite
244syn region nsisBGGradientOpt	contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisBGGradientKwd
245syn keyword nsisBGGradientKwd	contained off
246
247syn keyword nsisAttribute	contained BrandingText nextgroup=nsisBrandingTextOpt skipwhite
248syn region nsisBrandingTextOpt	contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisBrandingTextKwd
249syn match nsisBrandingTextKwd	contained "/TRIM\%(LEFT\|RIGHT\|CENTER\)\>"
250
251syn keyword nsisAttribute	contained CRCCheck nextgroup=nsisCRCCheckOpt skipwhite
252syn region nsisCRCCheckOpt	contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisCRCCheckKwd
253syn keyword nsisCRCCheckKwd	contained on off force
254
255syn keyword nsisAttribute	contained DirVerify nextgroup=nsisDirVerifyOpt skipwhite
256syn region nsisDirVerifyOpt	contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisDirVerifyKwd
257syn keyword nsisDirVerifyKwd	contained auto leave
258
259syn keyword nsisAttribute	contained InstallColors nextgroup=nsisInstallColorsOpt skipwhite
260syn region nsisInstallColorsOpt	contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisInstallColorsKwd
261syn match nsisInstallColorsKwd	contained "/windows\>"
262
263syn keyword nsisAttribute	contained InstallDirRegKey nextgroup=nsisRegistryOpt skipwhite
264
265syn keyword nsisAttribute	contained InstType nextgroup=nsisInstTypeOpt skipwhite
266syn region nsisInstTypeOpt	contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisInstTypeKwd
267syn match nsisInstTypeKwd	contained "/\%(NOCUSTOM\|CUSTOMSTRING\|COMPONENTSONLYONCUSTOM\|UNINSTNOCUSTOM\|UNINSTCOMPONENTSONLYONCUSTOM\)\>"
268
269syn keyword nsisAttribute	contained LicenseBkColor nextgroup=nsisLicenseBkColorOpt skipwhite
270syn region nsisLicenseBkColorOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisLicenseBkColorKwd
271syn match nsisLicenseBkColorKwd  contained "/\%(gray\|windows\)\>"
272
273syn keyword nsisAttribute	contained LicenseForceSelection nextgroup=nsisLicenseForceSelectionOpt skipwhite
274syn region nsisLicenseForceSelectionOpt  contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisLicenseForceSelectionKwd
275syn keyword nsisLicenseForceSelectionKwd contained checkbox radiobuttons off
276
277syn keyword nsisAttribute	contained ManifestDPIAware nextgroup=nsisManifestDPIAwareOpt skipwhite
278syn region nsisManifestDPIAwareOpt	contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisManifestDPIAwareKwd
279syn keyword nsisManifestDPIAwareKwd	contained notset true false
280
281syn keyword nsisAttribute	contained ManifestLongPathAware nextgroup=nsisManifestLongPathAwareOpt skipwhite
282syn region nsisManifestLongPathAwareOpt	contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisManifestLongPathAwareKwd
283syn match nsisManifestLongPathAwareKwd	contained "\<\%(notset\|true\|false\)\>"
284
285syn keyword nsisAttribute	contained ManifestSupportedOS nextgroup=nsisManifestSupportedOSOpt skipwhite
286syn region nsisManifestSupportedOSOpt	contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisManifestSupportedOSKwd
287syn match nsisManifestSupportedOSKwd	contained "\<\%(none\|all\|WinVista\|Win7\|Win8\|Win8\.1\|Win10\)\>"
288
289syn keyword nsisAttribute	contained ManifestMaxVersionTested ManifestAppendCustomString
290syn keyword nsisAttribute	contained ManifestDPIAwareness
291
292syn keyword nsisAttribute	contained ManifestDisableWindowFiltering nextgroup=nsisManifestDisableWindowFilteringOpt skipwhite
293syn region nsisManifestDisableWindowFilteringOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisManifestDisableWindowFilteringKwd
294syn match nsisManifestDisableWindowFilteringKwd  contained "\<\%(notset\|true\)\>"
295
296syn keyword nsisAttribute	contained ManifestGdiScaling nextgroup=nsisManifestGdiScalingOpt skipwhite
297syn region nsisManifestGdiScalingOpt	contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisManifestGdiScalingKwd
298syn match nsisManifestGdiScalingKwd	contained "\<\%(notset\|true\)\>"
299
300syn keyword nsisAttribute	contained PEAddResource nextgroup=nsisPEAddResourceOpt skipwhite
301syn region nsisPEAddResourceOpt	contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisPEAddResourceKwd
302syn match nsisPEAddResourceKwd	contained "/\%(OVERWRITE\|REPLACE\)\>"
303
304syn keyword nsisAttribute	contained PERemoveResource nextgroup=nsisPERemoveResourceOpt skipwhite
305syn region nsisPERemoveResourceOpt	contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisPERemoveResourceKwd
306syn match nsisPERemoveResourceKwd	contained "/NOERRORS\>"
307
308syn keyword nsisAttribute	contained PEDllCharacteristics PESubsysVer
309
310syn keyword nsisAttribute	contained RequestExecutionLevel nextgroup=nsisRequestExecutionLevelOpt skipwhite
311syn region nsisRequestExecutionLevelOpt  contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisRequestExecutionLevelKwd
312syn keyword nsisRequestExecutionLevelKwd contained none user highest admin
313
314syn keyword nsisAttribute	contained SetFont nextgroup=nsisLangOpt skipwhite
315
316syn keyword nsisAttribute	contained nextgroup=nsisShowInstDetailsOpt skipwhite
317			\ ShowInstDetails ShowUninstDetails
318syn region nsisShowInstDetailsOpt  contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisShowInstDetailsKwd
319syn keyword nsisShowInstDetailsKwd contained hide show nevershow
320
321syn keyword nsisAttribute	contained SilentInstall nextgroup=nsisSilentInstallOpt skipwhite
322syn region nsisSilentInstallOpt	 contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisSilentInstallKwd
323syn keyword nsisSilentInstallKwd contained normal silent silentlog
324
325syn keyword nsisAttribute	contained SilentUnInstall nextgroup=nsisSilentUnInstallOpt skipwhite
326syn region nsisSilentUnInstallOpt  contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisSilentUnInstallKwd
327syn keyword nsisSilentUnInstallKwd contained normal silent
328
329syn keyword nsisAttribute	contained nextgroup=nsisOnOffOpt skipwhite
330			\ WindowIcon XPStyle
331
332"COMPILER FLAGS (4.8.2)
333syn keyword nsisCompiler	contained nextgroup=nsisOnOffOpt skipwhite
334			\ AllowSkipFiles SetDatablockOptimize SetDateSave
335
336syn keyword nsisCompiler	contained FileBufSize SetCompressorDictSize
337
338syn keyword nsisCompiler	contained SetCompress nextgroup=nsisSetCompressOpt skipwhite
339syn region nsisSetCompressOpt	contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisSetCompressKwd
340syn keyword nsisSetCompressKwd  contained auto force off
341
342syn keyword nsisCompiler	contained SetCompressor nextgroup=nsisSetCompressorOpt skipwhite
343syn region nsisSetCompressorOpt	contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisSetCompressorKwd
344syn keyword nsisSetCompressorKwd  contained zlib bzip2 lzma
345syn match nsisSetCompressorKwd	contained "/\%(SOLID\|FINAL\)"
346
347syn keyword nsisCompiler	contained SetOverwrite nextgroup=nsisSetOverwriteOpt skipwhite
348syn region nsisSetOverwriteOpt	contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisSetOverwriteKwd
349syn keyword nsisSetOverwriteKwd	contained on off try ifnewer ifdiff lastused
350
351syn keyword nsisCompiler	contained SetCompressionLevel Target
352
353syn keyword nsisCompiler	contained CPU nextgroup=nsisCPUOpt skipwhite
354syn region nsisCPUOpt		contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisCPUKwd
355syn keyword nsisCPUKwd		contained x86 amd64
356
357syn keyword nsisCompiler	contained Unicode nextgroup=nsisBooleanOpt skipwhite
358
359"VERSION INFORMATION (4.8.3)
360syn keyword nsisVersionInfo	contained VIAddVersionKey nextgroup=nsisLangOpt skipwhite
361
362syn keyword nsisVersionInfo	contained VIProductVersion VIFileVersion
363
364
365"FUNCTIONS - basic (4.9.1)
366syn keyword nsisInstruction	contained Delete Rename nextgroup=nsisDeleteOpt skipwhite
367syn region nsisDeleteOpt	contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisDeleteKwd
368syn match nsisDeleteKwd		contained "/REBOOTOK\>"
369
370syn keyword nsisInstruction	contained Exec ExecWait SetOutPath
371
372syn keyword nsisInstruction	contained ExecShell ExecShellWait nextgroup=nsisExecShellOpt skipwhite
373syn region nsisExecShellOpt	contained start="" end="$" transparent contains=@nsisAnyOpt,nsisExecShellKwd
374syn keyword nsisExecShellKwd	contained SW_SHOW SW_SHOWDEFAULT SW_SHOWNORMAL SW_SHOWMAXIMIZED SW_SHOWMINIMIZED SW_HIDE
375syn match nsisExecShellKwd	contained "/INVOKEIDLIST\>"
376
377syn keyword nsisInstruction	contained File nextgroup=nsisFileOpt skipwhite
378syn region nsisFileOpt		contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisFileKwd
379syn match nsisFileKwd		contained "/\%(nonfatal\|[arx]\|oname\)\>"
380
381syn keyword nsisInstruction	contained ReserveFile nextgroup=nsisReserveFileOpt skipwhite
382syn region nsisReserveFileOpt	contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisReserveFileKwd
383syn match nsisReserveFileKwd	contained "/\%(nonfatal\|[rx]\|plugin\)\>"
384
385syn keyword nsisInstruction	contained RMDir nextgroup=nsisRMDirOpt skipwhite
386syn region nsisRMDirOpt		contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisRMDirKwd
387syn match nsisRMDirKwd		contained "/\%(REBOOTOK\|r\)\>"
388
389
390"FUNCTIONS - registry & ini (4.9.2)
391syn keyword nsisInstruction	contained DeleteINISec DeleteINIStr FlushINI ReadINIStr WriteINIStr
392syn keyword nsisInstruction	contained ExpandEnvStrings ReadEnvStr
393
394syn keyword nsisInstruction	contained DeleteRegKey nextgroup=nsisDeleteRegKeyOpt skipwhite
395syn region nsisDeleteRegKeyOpt	contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisDeleteRegKeyKwd,nsisRegistry
396syn match nsisDeleteRegKeyKwd	contained "/\%(ifempty\|ifnosubkeys\|ifnovalues\)\>"
397
398syn keyword nsisInstruction	contained nextgroup=nsisRegistryOpt skipwhite
399			\ DeleteRegValue EnumRegKey EnumRegValue ReadRegDWORD ReadRegStr WriteRegBin WriteRegDWORD WriteRegExpandStr WriteRegNone WriteRegStr
400syn region nsisRegistryOpt	contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisRegistry
401
402syn keyword nsisInstruction	contained WriteRegMultiStr nextgroup=nsisWriteRegMultiStrOpt skipwhite
403syn region nsisWriteRegMultiStrOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisRegistry,nsisWriteRegMultiStrKwd
404syn match nsisWriteRegMultiStrKwd  contained "/REGEDIT5\>"
405
406syn keyword nsisInstruction	contained SetRegView nextgroup=nsisSetRegViewOpt skipwhite
407syn region nsisSetRegViewOpt	contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisSetRegViewKwd
408syn keyword nsisSetRegViewKwd	contained 32 64 default lastused
409
410"FUNCTIONS - general purpose (4.9.3)
411syn keyword nsisInstruction	contained CallInstDLL CreateDirectory
412syn keyword nsisInstruction	contained GetFileTime GetFileTimeLocal GetKnownFolderPath
413syn keyword nsisInstruction	contained GetTempFileName ReadMemory SearchPath RegDLL UnRegDLL
414
415syn keyword nsisInstruction	contained CopyFiles nextgroup=nsisCopyFilesOpt skipwhite
416syn region nsisCopyFilesOpt	contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisCopyFilesKwd
417syn match nsisCopyFilesKwd	contained "/\%(SILENT\|FILESONLY\)\>"
418
419syn keyword nsisInstruction	contained CreateShortcut nextgroup=nsisCreateShortcutOpt skipwhite
420syn region nsisCreateShortcutOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisCreateShortcutKwd
421syn match nsisCreateShortcutKwd	 contained "/NoWorkingDir\>"
422
423syn keyword nsisInstruction	contained GetWinVer nextgroup=nsisGetWinVerOpt skipwhite
424syn region nsisGetWinVerOpt	contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisGetWinVerKwd
425syn keyword nsisGetWinVerKwd	contained Major Minor Build ServicePack
426
427syn keyword nsisInstruction	contained GetDLLVersion GetDLLVersionLocal nextgroup=nsisGetDLLVersionOpt skipwhite
428syn region nsisGetDLLVersionOpt	contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisGetDLLVersionKwd
429syn match nsisGetDLLVersionKwd	contained "/ProductVersion\>"
430
431syn keyword nsisInstruction	contained GetFullPathName nextgroup=nsisGetFullPathNameOpt skipwhite
432syn region nsisGetFullPathNameOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisGetFullPathNameKwd
433syn match nsisGetFullPathNameKwd  contained "/SHORT\>"
434
435syn keyword nsisInstruction	contained SetFileAttributes nextgroup=nsisSetFileAttributesOpt skipwhite
436syn region nsisSetFileAttributesOpt  contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisFileAttrib
437syn keyword nsisFileAttrib	contained NORMAL ARCHIVE HIDDEN OFFLINE READONLY SYSTEM TEMPORARY
438syn keyword nsisFileAttrib	contained FILE_ATTRIBUTE_NORMAL FILE_ATTRIBUTE_ARCHIVE FILE_ATTRIBUTE_HIDDEN
439syn keyword nsisFileAttrib	contained FILE_ATTRIBUTE_OFFLINE FILE_ATTRIBUTE_READONLY FILE_ATTRIBUTE_SYSTEM
440syn keyword nsisFileAttrib	contained FILE_ATTRIBUTE_TEMPORARY
441
442"FUNCTIONS - Flow Control (4.9.4)
443syn keyword nsisInstruction	contained Abort Call ClearErrors GetCurrentAddress
444syn keyword nsisInstruction	contained GetFunctionAddress GetLabelAddress Goto
445syn keyword nsisInstruction	contained IfAbort IfErrors IfFileExists IfRebootFlag IfSilent
446syn keyword nsisInstruction	contained IfAltRegView IfRtlLanguage IfShellVarContextAll
447syn keyword nsisInstruction	contained IntCmp IntCmpU Int64Cmp Int64CmpU IntPtrCmp IntPtrCmpU
448syn keyword nsisInstruction	contained Return Quit SetErrors StrCmp StrCmpS
449
450syn keyword nsisInstruction	contained MessageBox nextgroup=nsisMessageBoxOpt skipwhite
451syn region nsisMessageBoxOpt	contained start="" end="$" transparent contains=@nsisAnyOpt,nsisMessageBox
452syn keyword nsisMessageBox	contained MB_OK MB_OKCANCEL MB_ABORTRETRYIGNORE MB_RETRYCANCEL MB_YESNO MB_YESNOCANCEL
453syn keyword nsisMessageBox	contained MB_ICONEXCLAMATION MB_ICONINFORMATION MB_ICONQUESTION MB_ICONSTOP MB_USERICON
454syn keyword nsisMessageBox	contained MB_TOPMOST MB_SETFOREGROUND MB_RIGHT MB_RTLREADING
455syn keyword nsisMessageBox	contained MB_DEFBUTTON1 MB_DEFBUTTON2 MB_DEFBUTTON3 MB_DEFBUTTON4
456syn keyword nsisMessageBox	contained IDABORT IDCANCEL IDIGNORE IDNO IDOK IDRETRY IDYES
457syn match nsisMessageBox	contained "/SD\>"
458
459"FUNCTIONS - File and directory i/o instructions (4.9.5)
460syn keyword nsisInstruction	contained FileClose FileOpen FileRead FileReadUTF16LE
461syn keyword nsisInstruction	contained FileReadByte FileReadWord FileSeek FileWrite
462syn keyword nsisInstruction	contained FileWriteByte FileWriteWord
463syn keyword nsisInstruction	contained FindClose FindFirst FindNext
464
465syn keyword nsisInstruction	contained FileWriteUTF16LE nextgroup=nsisFileWriteUTF16LEOpt skipwhite
466syn region nsisFileWriteUTF16LEOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisFileWriteUTF16LEKwd
467syn match nsisFileWriteUTF16LEKwd  contained "/BOM\>"
468
469"FUNCTIONS - Uninstaller instructions (4.9.6)
470syn keyword nsisInstruction	contained WriteUninstaller
471
472"FUNCTIONS - Misc instructions (4.9.7)
473syn keyword nsisInstruction	contained GetErrorLevel GetInstDirError GetRegView GetShellVarContext
474syn keyword nsisInstruction	contained InitPluginsDir Nop
475syn keyword nsisInstruction	contained SetErrorLevel Sleep
476
477syn keyword nsisInstruction	contained SetShellVarContext nextgroup=nsisSetShellVarContextOpt skipwhite
478syn region nsisSetShellVarContextOpt  contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisSetShellVarContextKwd
479syn keyword nsisSetShellVarContextKwd contained current all lastused
480
481"FUNCTIONS - String manipulation support (4.9.8)
482syn keyword nsisInstruction	contained StrCpy StrLen UnsafeStrCpy
483
484"FUNCTIONS - Stack support (4.9.9)
485syn keyword nsisInstruction	contained Exch Push Pop
486
487"FUNCTIONS - Integer manipulation support (4.9.10)
488syn keyword nsisInstruction	contained IntFmt Int64Fmt IntOp IntPtrOp
489
490"FUNCTIONS - Rebooting support (4.9.11)
491syn keyword nsisInstruction	contained Reboot SetRebootFlag
492
493"FUNCTIONS - Install logging instructions (4.9.12)
494syn keyword nsisInstruction	contained LogSet nextgroup=nsisOnOffOpt skipwhite
495syn keyword nsisInstruction	contained LogText
496
497"FUNCTIONS - Section management instructions (4.9.13)
498syn keyword nsisInstruction	contained SectionSetFlags SectionGetFlags SectionSetText
499syn keyword nsisInstruction	contained SectionGetText SectionSetInstTypes SectionGetInstTypes
500syn keyword nsisInstruction	contained SectionSetSize SectionGetSize SetCurInstType GetCurInstType
501syn keyword nsisInstruction	contained InstTypeSetText InstTypeGetText
502
503"FUNCTIONS - User Interface Instructions (4.9.14)
504syn keyword nsisInstruction	contained BringToFront DetailPrint EnableWindow
505syn keyword nsisInstruction	contained FindWindow GetDlgItem HideWindow IsWindow
506syn keyword nsisInstruction	contained ShowWindow
507
508syn keyword nsisInstruction	contained CreateFont nextgroup=nsisFontOpt skipwhite
509
510syn keyword nsisInstruction	contained SetAutoClose nextgroup=nsisBooleanOpt skipwhite
511syn keyword nsisInstruction	contained LockWindow nextgroup=nsisOnOffOpt skipwhite
512
513syn keyword nsisInstruction	contained LoadAndSetImage nextgroup=nsisLoadAndSetImageOpt skipwhite
514syn region nsisLoadAndSetImageOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisLoadAndSetImageKwd
515syn match nsisLoadAndSetImageKwd  contained "/\%(EXERESOURCE\|STRINGID\|RESIZETOFIT\%(WIDTH\|HEIGHT\)\)\>"
516
517syn keyword nsisInstruction	contained SendMessage nextgroup=nsisSendMessageOpt skipwhite
518syn region nsisSendMessageOpt	contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisSendMessageKwd
519syn match nsisSendMessageKwd	contained "/TIMEOUT\>"
520
521syn keyword nsisInstruction	contained SetBrandingImage nextgroup=nsisSetBrandingImageOpt skipwhite
522syn region nsisSetBrandingImageOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisSetBrandingImageKwd
523syn match nsisSetBrandingImageKwd  contained "/\%(IMGID\|RESIZETOFIT\)\>"
524
525syn keyword nsisInstruction	contained SetDetailsView nextgroup=nsisSetDetailsViewOpt skipwhite
526syn region nsisSetDetailsViewOpt	contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisSetDetailsViewKwd
527syn keyword nsisSetDetailsViewKwd	contained show hide
528
529syn keyword nsisInstruction	contained SetDetailsPrint nextgroup=nsisSetDetailsPrintOpt skipwhite
530syn region nsisSetDetailsPrintOpt	contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisSetDetailsPrintKwd
531syn keyword nsisSetDetailsPrintKwd	contained none listonly textonly both lastused
532
533syn keyword nsisInstruction	contained SetCtlColors nextgroup=nsisSetCtlColorsOpt skipwhite
534syn region nsisSetCtlColorsOpt	contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisSetCtlColorsKwd
535syn match nsisSetCtlColorsKwd	contained "/BRANDING\>"
536
537syn keyword nsisInstruction	contained SetSilent nextgroup=nsisSetSilentOpt skipwhite
538syn region nsisSetSilentOpt	contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisSetSilentKwd
539syn keyword nsisSetSilentKwd	contained silent normal
540
541
542"FUNCTIONS - Multiple Languages Instructions (4.9.15)
543syn keyword nsisInstruction	contained LoadLanguageFile LangString LicenseLangString
544
545
546"SPECIAL FUNCTIONS - install (4.7.2.1)
547syn match nsisCallback		"\.onGUIInit"
548syn match nsisCallback		"\.onInit"
549syn match nsisCallback		"\.onInstFailed"
550syn match nsisCallback		"\.onInstSuccess"
551syn match nsisCallback		"\.onGUIEnd"
552syn match nsisCallback		"\.onMouseOverSection"
553syn match nsisCallback		"\.onRebootFailed"
554syn match nsisCallback		"\.onSelChange"
555syn match nsisCallback		"\.onUserAbort"
556syn match nsisCallback		"\.onVerifyInstDir"
557
558"SPECIAL FUNCTIONS - uninstall (4.7.2.2)
559syn match nsisCallback		"un\.onGUIInit"
560syn match nsisCallback		"un\.onInit"
561syn match nsisCallback		"un\.onUninstFailed"
562syn match nsisCallback		"un\.onUninstSuccess"
563syn match nsisCallback		"un\.onGUIEnd"
564syn match nsisCallback		"un\.onRebootFailed"
565syn match nsisCallback		"un\.onSelChange"
566syn match nsisCallback		"un\.onUserAbort"
567
568
569"COMPILER UTILITY (5.1)
570syn match nsisInclude		contained "!include\>" nextgroup=nsisIncludeOpt skipwhite
571syn region nsisIncludeOpt	contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisIncludeKwd
572syn match nsisIncludeKwd	contained "/\%(NONFATAL\|CHARSET\)\>"
573
574syn match nsisSystem		contained "!addincludedir\>"
575
576syn match nsisSystem		contained "!addplugindir\>" nextgroup=nsisAddplugindirOpt skipwhite
577syn region nsisAddplugindirOpt	contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisAddplugindirKwd
578syn match nsisAddplugindirKwd	contained "/\%(x86-ansi\|x86-unicode\)\>"
579
580syn match nsisSystem		contained "!appendfile\>" nextgroup=nsisAppendfileOpt skipwhite
581syn region nsisAppendfileOpt	contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisAppendfileKwd
582syn match nsisAppendfileKwd	contained "/\%(CHARSET\|RawNL\)\>"
583
584syn match nsisSystem		contained "!cd\>"
585
586syn match nsisSystem		contained "!delfile\>" nextgroup=nsisDelfileOpt skipwhite
587syn region nsisDelfileOpt	contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisDelfileKwd
588syn match nsisDelfileKwd	contained "/nonfatal\>"
589
590syn match nsisSystem		contained "!echo\>"
591syn match nsisSystem		contained "!error\>"
592syn match nsisSystem		contained "!execute\>"
593syn match nsisSystem		contained "!makensis\>"
594syn match nsisSystem		contained "!packhdr\>"
595syn match nsisSystem		contained "!finalize\>"
596syn match nsisSystem		contained "!uninstfinalize\>"
597syn match nsisSystem		contained "!system\>"
598syn match nsisSystem		contained "!assert\>"
599syn match nsisSystem		contained "!appendmemfile\>"
600syn match nsisSystem		contained "!tempfile\>"
601
602" Add 'P' to avoid conflicts with nsisGetDLLVersionOpt. ('P' for preprocessor.)
603syn match nsisSystem		contained "!getdllversion\>" nextgroup=nsisPGetdllversionOpt skipwhite
604syn region nsisPGetdllversionOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisPGetdllversionKwd
605syn match nsisPGetdllversionKwd	contained "/\%(noerrors\|packed\|productversion\)\>"
606
607syn match nsisSystem		contained "!gettlbversion\>" nextgroup=nsisPGettlbversionOpt skipwhite
608syn region nsisPGettlbversionOpt contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisPGettlbversionKwd
609syn match nsisPGettlbversionKwd	contained "/\%(noerrors\|packed\)\>"
610
611syn match nsisSystem		contained "!warning\>"
612
613syn match nsisSystem		contained "!pragma\>" nextgroup=nsisPragmaOpt skipwhite
614syn region nsisPragmaOpt	contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisPragmaKwd
615syn keyword nsisPragmaKwd	contained enable disable default push pop
616
617syn match nsisSystem		contained "!verbose\>" nextgroup=nsisVerboseOpt skipwhite
618syn region nsisVerboseOpt	contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisVerboseKwd
619syn keyword nsisVerboseKwd	contained push pop
620
621"PREPROCESSOR (5.4)
622syn match nsisDefine		contained "!define\>" nextgroup=nsisDefineOpt skipwhite
623syn region nsisDefineOpt	contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisDefineKwd
624syn match nsisDefineKwd		contained "/\%(ifndef\|redef\|date\|utcdate\|file\|intfmt\|math\)\>"
625
626syn match nsisDefine		contained "!undef\>" nextgroup=nsisUndefineOpt skipwhite
627syn region nsisUndefineOpt	contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisUndefineKwd
628syn match nsisUndefineKwd	contained "/noerrors\>"
629
630syn match nsisPreCondit		contained "!ifdef\>"
631syn match nsisPreCondit		contained "!ifndef\>"
632
633syn match nsisPreCondit		contained "!if\>" nextgroup=nsisIfOpt skipwhite
634syn region nsisIfOpt		contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisIfKwd
635syn match nsisIfKwd		contained "/FileExists\>"
636
637syn match nsisPreCondit		contained "!ifmacrodef\>"
638syn match nsisPreCondit		contained "!ifmacrondef\>"
639syn match nsisPreCondit		contained "!else\>"
640syn match nsisPreCondit		contained "!endif\>"
641syn match nsisMacro		contained "!insertmacro\>"
642syn match nsisMacro		contained "!macro\>"
643syn match nsisMacro		contained "!macroend\>"
644syn match nsisMacro		contained "!macroundef\>"
645
646syn match nsisMacro		contained "!searchparse\>" nextgroup=nsisSearchparseOpt skipwhite
647syn region nsisSearchparseOpt	contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisSearchparseKwd
648syn match nsisSearchparseKwd	contained "/\%(ignorecase\|noerrors\|file\)\>"
649
650syn match nsisMacro		contained "!searchreplace\>" nextgroup=nsisSearchreplaceOpt skipwhite
651syn region nsisSearchreplaceOpt	contained start="" end="$" transparent keepend contains=@nsisAnyOpt,nsisSearchreplaceKwd
652syn match nsisSearchreplaceKwd	contained "/ignorecase\>"
653
654
655
656" Define the default highlighting.
657" Only when an item doesn't have highlighting yet
658
659hi def link nsisInstruction		Function
660hi def link nsisComment			Comment
661hi def link nsisFirstComment		Comment
662hi def link nsisLocalLabel		Label
663hi def link nsisGlobalLabel		Label
664hi def link nsisStatement		Statement
665hi def link nsisString			String
666hi def link nsisBoolean			Boolean
667hi def link nsisOnOff			Boolean
668hi def link nsisFontKwd			Constant
669hi def link nsisLangKwd			Constant
670hi def link nsisPageKwd			Constant
671hi def link nsisPageExKwd		Constant
672hi def link nsisSectionKwd		Constant
673hi def link nsisSectionInKwd		Constant
674hi def link nsisSectionGroupKwd		Constant
675hi def link nsisVarKwd			Constant
676hi def link nsisAddBrandingImageKwd	Constant
677hi def link nsisBGGradientKwd		Constant
678hi def link nsisBrandingTextKwd		Constant
679hi def link nsisCRCCheckKwd		Constant
680hi def link nsisDirVerifyKwd		Constant
681hi def link nsisInstallColorsKwd	Constant
682hi def link nsisInstTypeKwd		Constant
683hi def link nsisLicenseBkColorKwd	Constant
684hi def link nsisLicenseForceSelectionKwd Constant
685hi def link nsisManifestDPIAwareKwd	Constant
686hi def link nsisManifestLongPathAwareKwd Constant
687hi def link nsisManifestSupportedOSKwd	Constant
688hi def link nsisManifestDisableWindowFilteringKwd Constant
689hi def link nsisManifestGdiScalingKwd	Constant
690hi def link nsisPEAddResourceKwd	Constant
691hi def link nsisPERemoveResourceKwd	Constant
692hi def link nsisRequestExecutionLevelKwd Constant
693hi def link nsisShowInstDetailsKwd	Constant
694hi def link nsisSilentInstallKwd	Constant
695hi def link nsisSilentUnInstallKwd	Constant
696hi def link nsisSetCompressKwd		Constant
697hi def link nsisSetCompressorKwd	Constant
698hi def link nsisSetOverwriteKwd		Constant
699hi def link nsisCPUKwd			Constant
700hi def link nsisDeleteKwd		Constant
701hi def link nsisExecShellKwd		Constant
702hi def link nsisFileKwd			Constant
703hi def link nsisReserveFileKwd		Constant
704hi def link nsisRMDirKwd		Constant
705hi def link nsisDeleteRegKeyKwd		Constant
706hi def link nsisWriteRegMultiStrKwd	Constant
707hi def link nsisSetRegViewKwd		Constant
708hi def link nsisCopyFilesKwd		Constant
709hi def link nsisCreateShortcutKwd	Constant
710hi def link nsisGetWinVerKwd		Constant
711hi def link nsisGetDLLVersionKwd	Constant
712hi def link nsisGetFullPathNameKwd	Constant
713hi def link nsisFileAttrib		Constant
714hi def link nsisMessageBox		Constant
715hi def link nsisFileWriteUTF16LEKwd	Constant
716hi def link nsisSetShellVarContextKwd	Constant
717hi def link nsisLoadAndSetImageKwd	Constant
718hi def link nsisSendMessageKwd		Constant
719hi def link nsisSetBrandingImageKwd	Constant
720hi def link nsisSetDetailsViewKwd	Constant
721hi def link nsisSetDetailsPrintKwd	Constant
722hi def link nsisSetCtlColorsKwd		Constant
723hi def link nsisSetSilentKwd		Constant
724hi def link nsisRegistry		Identifier
725hi def link nsisNumber			Number
726hi def link nsisError			Error
727hi def link nsisUserVar			Identifier
728hi def link nsisSysVar			Identifier
729hi def link nsisAttribute		Type
730hi def link nsisCompiler		Type
731hi def link nsisVersionInfo		Type
732hi def link nsisTodo			Todo
733hi def link nsisCallback		Identifier
734" preprocessor commands
735hi def link nsisPreprocSubst		PreProc
736hi def link nsisPreprocLangStr		PreProc
737hi def link nsisPreprocEnvVar		PreProc
738hi def link nsisDefine			Define
739hi def link nsisMacro			Macro
740hi def link nsisPreCondit		PreCondit
741hi def link nsisInclude			Include
742hi def link nsisSystem			PreProc
743hi def link nsisLineContinuation	Special
744hi def link nsisIncludeKwd		Constant
745hi def link nsisAddplugindirKwd		Constant
746hi def link nsisAppendfileKwd		Constant
747hi def link nsisDelfileKwd		Constant
748hi def link nsisPGetdllversionKwd	Constant
749hi def link nsisPGettlbversionKwd	Constant
750hi def link nsisPragmaKwd		Constant
751hi def link nsisVerboseKwd		Constant
752hi def link nsisDefineKwd		Constant
753hi def link nsisUndefineKwd		Constant
754hi def link nsisIfKwd			Constant
755hi def link nsisSearchparseKwd		Constant
756hi def link nsisSearchreplaceKwd	Constant
757
758
759let b:current_syntax = "nsis"
760
761let &cpo = s:cpo_save
762unlet s:cpo_save