annotate runtime/syntax/nsis.vim @ 7390:c6215e9d4b30

Added tag v7.4.999 for changeset f7ed82d38e6d89dc6041eccf824e65c100c110cf
author Christian Brabandt <cb@256bit.org>
date Wed, 30 Dec 2015 13:45:04 +0100
parents 3fc0f57ecb91
children 43efa4f5a8ea
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim syntax file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Language: NSIS script, for version of NSIS 1.91 and later
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Alex Jakushev <Alex.Jakushev@kemek.lt>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " Last Change: 2004 May 12
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 " For version 5.x: Clear all syntax items
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 " For version 6.x: Quit when a syntax file was already loaded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 "COMMENTS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 syn keyword nsisTodo todo attention note fixme readme
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 syn region nsisComment start=";" end="$" contains=nsisTodo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 syn region nsisComment start="#" end="$" contains=nsisTodo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 "LABELS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 syn match nsisLocalLabel "\a\S\{-}:"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 syn match nsisGlobalLabel "\.\S\{-1,}:"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 "PREPROCESSOR
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn match nsisPreprocSubst "${.\{-}}"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn match nsisDefine "!define\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn match nsisDefine "!undef\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn match nsisPreCondit "!ifdef\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 syn match nsisPreCondit "!ifndef\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 syn match nsisPreCondit "!endif\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 syn match nsisPreCondit "!else\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 syn match nsisMacro "!macro\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 syn match nsisMacro "!macroend\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 syn match nsisMacro "!insertmacro\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 "COMPILER UTILITY
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 syn match nsisInclude "!include\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 syn match nsisSystem "!cd\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 syn match nsisSystem "!system\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 syn match nsisSystem "!packhdr\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 "VARIABLES
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 syn match nsisUserVar "$\d"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 syn match nsisUserVar "$R\d"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 syn match nsisSysVar "$INSTDIR"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 syn match nsisSysVar "$OUTDIR"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 syn match nsisSysVar "$CMDLINE"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 syn match nsisSysVar "$PROGRAMFILES"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 syn match nsisSysVar "$DESKTOP"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 syn match nsisSysVar "$EXEDIR"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 syn match nsisSysVar "$WINDIR"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 syn match nsisSysVar "$SYSDIR"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 syn match nsisSysVar "$TEMP"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 syn match nsisSysVar "$STARTMENU"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 syn match nsisSysVar "$SMPROGRAMS"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 syn match nsisSysVar "$SMSTARTUP"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 syn match nsisSysVar "$QUICKLAUNCH"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 syn match nsisSysVar "$HWNDPARENT"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 syn match nsisSysVar "$\\r"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 syn match nsisSysVar "$\\n"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 syn match nsisSysVar "$\$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 "STRINGS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 syn region nsisString start=/"/ skip=/'\|`/ end=/"/ contains=nsisPreprocSubst,nsisUserVar,nsisSysVar,nsisRegistry
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 syn region nsisString start=/'/ skip=/"\|`/ end=/'/ contains=nsisPreprocSubst,nsisUserVar,nsisSysVar,nsisRegistry
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 syn region nsisString start=/`/ skip=/"\|'/ end=/`/ contains=nsisPreprocSubst,nsisUserVar,nsisSysVar,nsisRegistry
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 "CONSTANTS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 syn keyword nsisBoolean true false on off
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 syn keyword nsisAttribOptions hide show nevershow auto force try ifnewer normal silent silentlog
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 syn keyword nsisAttribOptions smooth colored SET CUR END RO none listonly textonly both current all
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 syn keyword nsisAttribOptions zlib bzip2 lzma
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 syn match nsisAttribOptions '\/NOCUSTOM'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 syn match nsisAttribOptions '\/CUSTOMSTRING'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 syn match nsisAttribOptions '\/COMPONENTSONLYONCUSTOM'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 syn match nsisAttribOptions '\/windows'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 syn match nsisAttribOptions '\/r'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 syn match nsisAttribOptions '\/oname'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 syn match nsisAttribOptions '\/REBOOTOK'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 syn match nsisAttribOptions '\/SILENT'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85 syn match nsisAttribOptions '\/FILESONLY'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 syn match nsisAttribOptions '\/SHORT'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 syn keyword nsisExecShell SW_SHOWNORMAL SW_SHOWMAXIMIZED SW_SHOWMINIMIZED
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90 syn keyword nsisRegistry HKCR HKLM HKCU HKU HKCC HKDD HKPD
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 syn keyword nsisRegistry HKEY_CLASSES_ROOT HKEY_LOCAL_MACHINE HKEY_CURRENT_USER HKEY_USERS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92 syn keyword nsisRegistry HKEY_CURRENT_CONFIG HKEY_DYN_DATA HKEY_PERFORMANCE_DATA
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 syn keyword nsisFileAttrib NORMAL ARCHIVE HIDDEN OFFLINE READONLY SYSTEM TEMPORARY
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95 syn keyword nsisFileAttrib FILE_ATTRIBUTE_NORMAL FILE_ATTRIBUTE_ARCHIVE FILE_ATTRIBUTE_HIDDEN
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96 syn keyword nsisFileAttrib FILE_ATTRIBUTE_OFFLINE FILE_ATTRIBUTE_READONLY FILE_ATTRIBUTE_SYSTEM
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97 syn keyword nsisFileAttrib FILE_ATTRIBUTE_TEMPORARY
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99 syn keyword nsisMessageBox MB_OK MB_OKCANCEL MB_ABORTRETRYIGNORE MB_RETRYCANCEL MB_YESNO MB_YESNOCANCEL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100 syn keyword nsisMessageBox MB_ICONEXCLAMATION MB_ICONINFORMATION MB_ICONQUESTION MB_ICONSTOP
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101 syn keyword nsisMessageBox MB_TOPMOST MB_SETFOREGROUND MB_RIGHT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
102 syn keyword nsisMessageBox MB_DEFBUTTON1 MB_DEFBUTTON2 MB_DEFBUTTON3 MB_DEFBUTTON4
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
103 syn keyword nsisMessageBox IDABORT IDCANCEL IDIGNORE IDNO IDOK IDRETRY IDYES
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
104
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
105 syn match nsisNumber "\<[^0]\d*\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
106 syn match nsisNumber "\<0x\x\+\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
107 syn match nsisNumber "\<0\o*\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
108
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
109
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
110 "INSTALLER ATTRIBUTES - General installer configuration
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
111 syn keyword nsisAttribute OutFile Name Caption SubCaption BrandingText Icon
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
112 syn keyword nsisAttribute WindowIcon BGGradient SilentInstall SilentUnInstall
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
113 syn keyword nsisAttribute CRCCheck MiscButtonText InstallButtonText FileErrorText
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
114
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
115 "INSTALLER ATTRIBUTES - Install directory configuration
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
116 syn keyword nsisAttribute InstallDir InstallDirRegKey
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
117
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
118 "INSTALLER ATTRIBUTES - License page configuration
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
119 syn keyword nsisAttribute LicenseText LicenseData
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
120
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
121 "INSTALLER ATTRIBUTES - Component page configuration
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
122 syn keyword nsisAttribute ComponentText InstType EnabledBitmap DisabledBitmap SpaceTexts
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
123
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
124 "INSTALLER ATTRIBUTES - Directory page configuration
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
125 syn keyword nsisAttribute DirShow DirText AllowRootDirInstall
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
126
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
127 "INSTALLER ATTRIBUTES - Install page configuration
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
128 syn keyword nsisAttribute InstallColors InstProgressFlags AutoCloseWindow
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
129 syn keyword nsisAttribute ShowInstDetails DetailsButtonText CompletedText
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
130
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
131 "INSTALLER ATTRIBUTES - Uninstall configuration
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
132 syn keyword nsisAttribute UninstallText UninstallIcon UninstallCaption
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
133 syn keyword nsisAttribute UninstallSubCaption ShowUninstDetails UninstallButtonText
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
134
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
135 "COMPILER ATTRIBUTES
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
136 syn keyword nsisCompiler SetOverwrite SetCompress SetCompressor SetDatablockOptimize SetDateSave
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
137
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
138
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
139 "FUNCTIONS - general purpose
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
140 syn keyword nsisInstruction SetOutPath File Exec ExecWait ExecShell
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
141 syn keyword nsisInstruction Rename Delete RMDir
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
142
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
143 "FUNCTIONS - registry & ini
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
144 syn keyword nsisInstruction WriteRegStr WriteRegExpandStr WriteRegDWORD WriteRegBin
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
145 syn keyword nsisInstruction WriteINIStr ReadRegStr ReadRegDWORD ReadINIStr ReadEnvStr
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
146 syn keyword nsisInstruction ExpandEnvStrings DeleteRegValue DeleteRegKey EnumRegKey
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
147 syn keyword nsisInstruction EnumRegValue DeleteINISec DeleteINIStr
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
148
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
149 "FUNCTIONS - general purpose, advanced
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
150 syn keyword nsisInstruction CreateDirectory CopyFiles SetFileAttributes CreateShortCut
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
151 syn keyword nsisInstruction GetFullPathName SearchPath GetTempFileName CallInstDLL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
152 syn keyword nsisInstruction RegDLL UnRegDLL GetDLLVersion GetDLLVersionLocal
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
153 syn keyword nsisInstruction GetFileTime GetFileTimeLocal
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
154
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
155 "FUNCTIONS - Branching, flow control, error checking, user interaction, etc instructions
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
156 syn keyword nsisInstruction Goto Call Return IfErrors ClearErrors SetErrors FindWindow
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
157 syn keyword nsisInstruction SendMessage IsWindow IfFileExists MessageBox StrCmp
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
158 syn keyword nsisInstruction IntCmp IntCmpU Abort Quit GetFunctionAddress GetLabelAddress
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
159 syn keyword nsisInstruction GetCurrentAddress
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
160
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
161 "FUNCTIONS - File and directory i/o instructions
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
162 syn keyword nsisInstruction FindFirst FindNext FindClose FileOpen FileClose FileRead
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
163 syn keyword nsisInstruction FileWrite FileReadByte FileWriteByte FileSeek
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
164
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
165 "FUNCTIONS - Misc instructions
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
166 syn keyword nsisInstruction SetDetailsView SetDetailsPrint SetAutoClose DetailPrint
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
167 syn keyword nsisInstruction Sleep BringToFront HideWindow SetShellVarContext
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
168
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
169 "FUNCTIONS - String manipulation support
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
170 syn keyword nsisInstruction StrCpy StrLen
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
171
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
172 "FUNCTIONS - Stack support
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
173 syn keyword nsisInstruction Push Pop Exch
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
174
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
175 "FUNCTIONS - Integer manipulation support
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
176 syn keyword nsisInstruction IntOp IntFmt
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
177
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
178 "FUNCTIONS - Rebooting support
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
179 syn keyword nsisInstruction Reboot IfRebootFlag SetRebootFlag
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
180
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
181 "FUNCTIONS - Uninstaller instructions
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
182 syn keyword nsisInstruction WriteUninstaller
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
183
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
184 "FUNCTIONS - Install logging instructions
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
185 syn keyword nsisInstruction LogSet LogText
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
186
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
187 "FUNCTIONS - Section management instructions
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
188 syn keyword nsisInstruction SectionSetFlags SectionGetFlags SectionSetText
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
189 syn keyword nsisInstruction SectionGetText
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
190
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
191
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
192 "SPECIAL FUNCTIONS - install
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
193 syn match nsisCallback "\.onInit"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
194 syn match nsisCallback "\.onUserAbort"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
195 syn match nsisCallback "\.onInstSuccess"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
196 syn match nsisCallback "\.onInstFailed"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
197 syn match nsisCallback "\.onVerifyInstDir"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
198 syn match nsisCallback "\.onNextPage"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
199 syn match nsisCallback "\.onPrevPage"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
200 syn match nsisCallback "\.onSelChange"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
201
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
202 "SPECIAL FUNCTIONS - uninstall
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
203 syn match nsisCallback "un\.onInit"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
204 syn match nsisCallback "un\.onUserAbort"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
205 syn match nsisCallback "un\.onInstSuccess"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
206 syn match nsisCallback "un\.onInstFailed"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
207 syn match nsisCallback "un\.onVerifyInstDir"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
208 syn match nsisCallback "un\.onNextPage"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
209
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
210
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
211 "STATEMENTS - sections
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
212 syn keyword nsisStatement Section SectionIn SectionEnd SectionDivider
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
213 syn keyword nsisStatement AddSize
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
214
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
215 "STATEMENTS - functions
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
216 syn keyword nsisStatement Function FunctionEnd
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
217
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
218 "STATEMENTS - pages
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
219 syn keyword nsisStatement Page UninstPage PageEx PageExEnc PageCallbacks
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
220
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
221
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
222 "ERROR
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
223 syn keyword nsisError UninstallExeName
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
224
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
225
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
226 " Define the default highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
227 " For version 5.7 and earlier: only when not done already
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
228 " For version 5.8 and later: only when an item doesn't have highlighting yet
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
229 if version >= 508 || !exists("did_nsis_syn_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
230
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
231 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
232 let did_nsys_syn_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
233 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
234 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
235 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
236 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
237
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
238
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
239 HiLink nsisInstruction Function
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
240 HiLink nsisComment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
241 HiLink nsisLocalLabel Label
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
242 HiLink nsisGlobalLabel Label
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
243 HiLink nsisStatement Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
244 HiLink nsisString String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
245 HiLink nsisBoolean Boolean
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
246 HiLink nsisAttribOptions Constant
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
247 HiLink nsisExecShell Constant
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
248 HiLink nsisFileAttrib Constant
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
249 HiLink nsisMessageBox Constant
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
250 HiLink nsisRegistry Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
251 HiLink nsisNumber Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
252 HiLink nsisError Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
253 HiLink nsisUserVar Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
254 HiLink nsisSysVar Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
255 HiLink nsisAttribute Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
256 HiLink nsisCompiler Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
257 HiLink nsisTodo Todo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
258 HiLink nsisCallback Operator
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
259 " preprocessor commands
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
260 HiLink nsisPreprocSubst PreProc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
261 HiLink nsisDefine Define
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
262 HiLink nsisMacro Macro
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
263 HiLink nsisPreCondit PreCondit
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
264 HiLink nsisInclude Include
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
265 HiLink nsisSystem PreProc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
266
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
267 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
268 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
269
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
270 let b:current_syntax = "nsis"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
271