annotate runtime/syntax/iss.vim @ 7444:045cd3a3a7ae

Added tag v7.4.1025 for changeset 357b7bd8d6125c81cc5c2be482902cb8bb753751
author Christian Brabandt <cb@256bit.org>
date Sat, 02 Jan 2016 15:45:04 +0100
parents 410fa1a31baf
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
17
9be87deaeb52 updated for version 7.0009
vimboss
parents: 15
diff changeset
2 " Language: Inno Setup File (iss file) and My InnoSetup extension
9be87deaeb52 updated for version 7.0009
vimboss
parents: 15
diff changeset
3 " Maintainer: Jason Mills (jmills@cs.mun.ca)
9be87deaeb52 updated for version 7.0009
vimboss
parents: 15
diff changeset
4 " Previous Maintainer: Dominique Stéphan (dominique@mggen.com)
39
410fa1a31baf updated for version 7.0023
vimboss
parents: 17
diff changeset
5 " Last Change: 2004 Dec 14
410fa1a31baf updated for version 7.0023
vimboss
parents: 17
diff changeset
6 "
410fa1a31baf updated for version 7.0023
vimboss
parents: 17
diff changeset
7 " Todo:
410fa1a31baf updated for version 7.0023
vimboss
parents: 17
diff changeset
8 " - The paramter String: is matched as flag string (because of case ignore).
410fa1a31baf updated for version 7.0023
vimboss
parents: 17
diff changeset
9 " - Pascal scripting syntax is not recognized.
410fa1a31baf updated for version 7.0023
vimboss
parents: 17
diff changeset
10 " - Embedded double quotes confuse string matches. e.g. "asfd""asfa"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 " For version 5.x: Clear all syntax items
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 " For version 6.x: Quit when a syntax file was already loaded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 " shut case off
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22
17
9be87deaeb52 updated for version 7.0009
vimboss
parents: 15
diff changeset
23 " Preprocessor
9be87deaeb52 updated for version 7.0009
vimboss
parents: 15
diff changeset
24 syn region issPreProc start="^\s*#" end="$"
9be87deaeb52 updated for version 7.0009
vimboss
parents: 15
diff changeset
25
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 " Section
39
410fa1a31baf updated for version 7.0023
vimboss
parents: 17
diff changeset
27 syn region issSection start="\[" end="\]"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 " Label in the [Setup] Section
39
410fa1a31baf updated for version 7.0023
vimboss
parents: 17
diff changeset
30 syn match issDirective "^[^=]\+="
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 " URL
39
410fa1a31baf updated for version 7.0023
vimboss
parents: 17
diff changeset
33 syn match issURL "http[s]\=:\/\/.*$"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34
39
410fa1a31baf updated for version 7.0023
vimboss
parents: 17
diff changeset
35 " Parameters used for any section.
410fa1a31baf updated for version 7.0023
vimboss
parents: 17
diff changeset
36 " syn match issParam"[^: ]\+:"
410fa1a31baf updated for version 7.0023
vimboss
parents: 17
diff changeset
37 syn match issParam "Name:"
410fa1a31baf updated for version 7.0023
vimboss
parents: 17
diff changeset
38 syn match issParam "MinVersion:\|OnlyBelowVersion:\|Languages:"
410fa1a31baf updated for version 7.0023
vimboss
parents: 17
diff changeset
39 syn match issParam "Source:\|DestDir:\|DestName:\|CopyMode:"
410fa1a31baf updated for version 7.0023
vimboss
parents: 17
diff changeset
40 syn match issParam "Attribs:\|Permissions:\|FontInstall:\|Flags:"
410fa1a31baf updated for version 7.0023
vimboss
parents: 17
diff changeset
41 syn match issParam "FileName:\|Parameters:\|WorkingDir:\|HotKey:\|Comment:"
410fa1a31baf updated for version 7.0023
vimboss
parents: 17
diff changeset
42 syn match issParam "IconFilename:\|IconIndex:"
410fa1a31baf updated for version 7.0023
vimboss
parents: 17
diff changeset
43 syn match issParam "Section:\|Key:\|String:"
410fa1a31baf updated for version 7.0023
vimboss
parents: 17
diff changeset
44 syn match issParam "Root:\|SubKey:\|ValueType:\|ValueName:\|ValueData:"
410fa1a31baf updated for version 7.0023
vimboss
parents: 17
diff changeset
45 syn match issParam "RunOnceId:"
410fa1a31baf updated for version 7.0023
vimboss
parents: 17
diff changeset
46 syn match issParam "Type:\|Excludes:"
410fa1a31baf updated for version 7.0023
vimboss
parents: 17
diff changeset
47 syn match issParam "Components:\|Description:\|GroupDescription:\|Types:\|ExtraDiskSpaceRequired:"
410fa1a31baf updated for version 7.0023
vimboss
parents: 17
diff changeset
48 syn match issParam "StatusMsg:\|RunOnceId:\|Tasks:"
410fa1a31baf updated for version 7.0023
vimboss
parents: 17
diff changeset
49 syn match issParam "MessagesFile:\|LicenseFile:\|InfoBeforeFile:\|InfoAfterFile:"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50
39
410fa1a31baf updated for version 7.0023
vimboss
parents: 17
diff changeset
51 syn match issComment "^\s*;.*$"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 " folder constant
39
410fa1a31baf updated for version 7.0023
vimboss
parents: 17
diff changeset
54 syn match issFolder "{[^{]*}"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 " string
39
410fa1a31baf updated for version 7.0023
vimboss
parents: 17
diff changeset
57 syn region issString start=+"+ end=+"+ contains=issFolder
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 " [Dirs]
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 syn keyword issDirsFlags deleteafterinstall uninsalwaysuninstall uninsneveruninstall
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 " [Files]
15
631143ac4a01 updated for version 7.0007
vimboss
parents: 7
diff changeset
63 syn keyword issFilesCopyMode normal onlyifdoesntexist alwaysoverwrite alwaysskipifsameorolder dontcopy
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 syn keyword issFilesAttribs readonly hidden system
15
631143ac4a01 updated for version 7.0007
vimboss
parents: 7
diff changeset
65 syn keyword issFilesPermissions full modify readexec
631143ac4a01 updated for version 7.0007
vimboss
parents: 7
diff changeset
66 syn keyword issFilesFlags allowunsafefiles comparetimestampalso confirmoverwrite deleteafterinstall
631143ac4a01 updated for version 7.0007
vimboss
parents: 7
diff changeset
67 syn keyword issFilesFlags dontcopy dontverifychecksum external fontisnttruetype ignoreversion
631143ac4a01 updated for version 7.0007
vimboss
parents: 7
diff changeset
68 syn keyword issFilesFlags isreadme onlyifdestfileexists onlyifdoesntexist overwritereadonly
631143ac4a01 updated for version 7.0007
vimboss
parents: 7
diff changeset
69 syn keyword issFilesFlags promptifolder recursesubdirs regserver regtypelib restartreplace
631143ac4a01 updated for version 7.0007
vimboss
parents: 7
diff changeset
70 syn keyword issFilesFlags sharedfile skipifsourcedoesntexist sortfilesbyextension touch
631143ac4a01 updated for version 7.0007
vimboss
parents: 7
diff changeset
71 syn keyword issFilesFlags uninsremovereadonly uninsrestartdelete uninsneveruninstall
39
410fa1a31baf updated for version 7.0023
vimboss
parents: 17
diff changeset
72 syn keyword issFilesFlags replacesameversion nocompression noencryption noregerror
410fa1a31baf updated for version 7.0023
vimboss
parents: 17
diff changeset
73
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 " [Icons]
15
631143ac4a01 updated for version 7.0007
vimboss
parents: 7
diff changeset
76 syn keyword issIconsFlags closeonexit createonlyiffileexists dontcloseonexit
631143ac4a01 updated for version 7.0007
vimboss
parents: 7
diff changeset
77 syn keyword issIconsFlags runmaximized runminimized uninsneveruninstall useapppaths
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 " [INI]
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 syn keyword issINIFlags createkeyifdoesntexist uninsdeleteentry uninsdeletesection uninsdeletesectionifempty
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 " [Registry]
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 syn keyword issRegRootKey HKCR HKCU HKLM HKU HKCC
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 syn keyword issRegValueType none string expandsz multisz dword binary
15
631143ac4a01 updated for version 7.0007
vimboss
parents: 7
diff changeset
85 syn keyword issRegFlags createvalueifdoesntexist deletekey deletevalue dontcreatekey
631143ac4a01 updated for version 7.0007
vimboss
parents: 7
diff changeset
86 syn keyword issRegFlags preservestringtype noerror uninsclearvalue
631143ac4a01 updated for version 7.0007
vimboss
parents: 7
diff changeset
87 syn keyword issRegFlags uninsdeletekey uninsdeletekeyifempty uninsdeletevalue
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89 " [Run] and [UninstallRun]
15
631143ac4a01 updated for version 7.0007
vimboss
parents: 7
diff changeset
90 syn keyword issRunFlags hidewizard nowait postinstall runhidden runmaximized
631143ac4a01 updated for version 7.0007
vimboss
parents: 7
diff changeset
91 syn keyword issRunFlags runminimized shellexec skipifdoesntexist skipifnotsilent
631143ac4a01 updated for version 7.0007
vimboss
parents: 7
diff changeset
92 syn keyword issRunFlags skipifsilent unchecked waituntilidle
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 " [Types]
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95 syn keyword issTypesFlags iscustom
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97 " [Components]
15
631143ac4a01 updated for version 7.0007
vimboss
parents: 7
diff changeset
98 syn keyword issComponentsFlags dontinheritcheck exclusive fixed restart disablenouninstallwarning
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100 " [UninstallDelete] and [InstallDelete]
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101 syn keyword issInstallDeleteType files filesandordirs dirifempty
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
102
15
631143ac4a01 updated for version 7.0007
vimboss
parents: 7
diff changeset
103 " [Tasks]
631143ac4a01 updated for version 7.0007
vimboss
parents: 7
diff changeset
104 syn keyword issTasksFlags checkedonce dontinheritcheck exclusive restart unchecked
631143ac4a01 updated for version 7.0007
vimboss
parents: 7
diff changeset
105
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
106
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
107 " Define the default highlighting.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
108 " For version 5.7 and earlier: only when not done already
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
109 " 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
110 if version >= 508 || !exists("did_iss_syntax_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
111 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
112 let did_iss_syntax_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
113 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
114 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
115 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
116 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
117
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
118 " The default methods for highlighting. Can be overridden later
39
410fa1a31baf updated for version 7.0023
vimboss
parents: 17
diff changeset
119 HiLink issSection Special
410fa1a31baf updated for version 7.0023
vimboss
parents: 17
diff changeset
120 HiLink issComment Comment
410fa1a31baf updated for version 7.0023
vimboss
parents: 17
diff changeset
121 HiLink issDirective Type
410fa1a31baf updated for version 7.0023
vimboss
parents: 17
diff changeset
122 HiLink issParam Type
410fa1a31baf updated for version 7.0023
vimboss
parents: 17
diff changeset
123 HiLink issFolder Special
410fa1a31baf updated for version 7.0023
vimboss
parents: 17
diff changeset
124 HiLink issString String
410fa1a31baf updated for version 7.0023
vimboss
parents: 17
diff changeset
125 HiLink issURL Include
410fa1a31baf updated for version 7.0023
vimboss
parents: 17
diff changeset
126 HiLink issPreProc PreProc
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
127
39
410fa1a31baf updated for version 7.0023
vimboss
parents: 17
diff changeset
128 HiLink issDirsFlags Keyword
410fa1a31baf updated for version 7.0023
vimboss
parents: 17
diff changeset
129 HiLink issFilesCopyMode Keyword
410fa1a31baf updated for version 7.0023
vimboss
parents: 17
diff changeset
130 HiLink issFilesAttribs Keyword
410fa1a31baf updated for version 7.0023
vimboss
parents: 17
diff changeset
131 HiLink issFilesPermissions Keyword
410fa1a31baf updated for version 7.0023
vimboss
parents: 17
diff changeset
132 HiLink issFilesFlags Keyword
410fa1a31baf updated for version 7.0023
vimboss
parents: 17
diff changeset
133 HiLink issIconsFlags Keyword
410fa1a31baf updated for version 7.0023
vimboss
parents: 17
diff changeset
134 HiLink issINIFlags Keyword
410fa1a31baf updated for version 7.0023
vimboss
parents: 17
diff changeset
135 HiLink issRegRootKey Keyword
410fa1a31baf updated for version 7.0023
vimboss
parents: 17
diff changeset
136 HiLink issRegValueType Keyword
410fa1a31baf updated for version 7.0023
vimboss
parents: 17
diff changeset
137 HiLink issRegFlags Keyword
410fa1a31baf updated for version 7.0023
vimboss
parents: 17
diff changeset
138 HiLink issRunFlags Keyword
410fa1a31baf updated for version 7.0023
vimboss
parents: 17
diff changeset
139 HiLink issTypesFlags Keyword
410fa1a31baf updated for version 7.0023
vimboss
parents: 17
diff changeset
140 HiLink issComponentsFlags Keyword
410fa1a31baf updated for version 7.0023
vimboss
parents: 17
diff changeset
141 HiLink issInstallDeleteType Keyword
410fa1a31baf updated for version 7.0023
vimboss
parents: 17
diff changeset
142 HiLink issTasksFlags Keyword
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
143
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
144 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
145 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
146
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
147 let b:current_syntax = "iss"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
148
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
149 " vim:ts=8