annotate runtime/syntax/nsis.vim @ 11832:dbce4b707386 v8.0.0796

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