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