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