annotate runtime/syntax/iss.vim @ 33080:51b4577d57bf

Added tag v9.0.1826 for changeset 5f201b734cb7b114a411a339a895d25ebecf7262
author Christian Brabandt <cb@256bit.org>
date Wed, 30 Aug 2023 19:45:05 +0200
parents c42a15deee64
children
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)
22723
5b7ea82bc18f Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18186
diff changeset
4 " Previous Maintainer: Dominique Stéphan (dominique@mggen.com)
32766
c42a15deee64 Update iss syntax file (#11890)
Christian Brabandt <cb@256bit.org>
parents: 25773
diff changeset
5 " Last Change: 2023 Jan 26
39
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 " - Pascal scripting syntax is not recognized.
410fa1a31baf updated for version 7.0023
vimboss
parents: 17
diff changeset
9 " - Embedded double quotes confuse string matches. e.g. "asfd""asfa"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 39
diff changeset
11 " quit when a syntax file was already loaded
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 39
diff changeset
12 if exists("b:current_syntax")
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 " shut case off
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18
32766
c42a15deee64 Update iss syntax file (#11890)
Christian Brabandt <cb@256bit.org>
parents: 25773
diff changeset
19 " match keywords with colon
c42a15deee64 Update iss syntax file (#11890)
Christian Brabandt <cb@256bit.org>
parents: 25773
diff changeset
20 syn iskeyword @,48-57,_,192-255,:
c42a15deee64 Update iss syntax file (#11890)
Christian Brabandt <cb@256bit.org>
parents: 25773
diff changeset
21
17
9be87deaeb52 updated for version 7.0009
vimboss
parents: 15
diff changeset
22 " Preprocessor
9be87deaeb52 updated for version 7.0009
vimboss
parents: 15
diff changeset
23 syn region issPreProc start="^\s*#" end="$"
9be87deaeb52 updated for version 7.0009
vimboss
parents: 15
diff changeset
24
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 " Section
39
410fa1a31baf updated for version 7.0023
vimboss
parents: 17
diff changeset
26 syn region issSection start="\[" end="\]"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 " Label in the [Setup] Section
39
410fa1a31baf updated for version 7.0023
vimboss
parents: 17
diff changeset
29 syn match issDirective "^[^=]\+="
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 " URL
39
410fa1a31baf updated for version 7.0023
vimboss
parents: 17
diff changeset
32 syn match issURL "http[s]\=:\/\/.*$"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33
39
410fa1a31baf updated for version 7.0023
vimboss
parents: 17
diff changeset
34 " Parameters used for any section.
32766
c42a15deee64 Update iss syntax file (#11890)
Christian Brabandt <cb@256bit.org>
parents: 25773
diff changeset
35 " syn match issParam "[^: ]\+:"
c42a15deee64 Update iss syntax file (#11890)
Christian Brabandt <cb@256bit.org>
parents: 25773
diff changeset
36 syn keyword issParam Name:
c42a15deee64 Update iss syntax file (#11890)
Christian Brabandt <cb@256bit.org>
parents: 25773
diff changeset
37 syn keyword issParam MinVersion: OnlyBelowVersion: Languages:
c42a15deee64 Update iss syntax file (#11890)
Christian Brabandt <cb@256bit.org>
parents: 25773
diff changeset
38 syn keyword issParam Source: DestDir: DestName: CopyMode: ExternalSize:
c42a15deee64 Update iss syntax file (#11890)
Christian Brabandt <cb@256bit.org>
parents: 25773
diff changeset
39 syn keyword issParam Attribs: Permissions: FontInstall: Flags:
c42a15deee64 Update iss syntax file (#11890)
Christian Brabandt <cb@256bit.org>
parents: 25773
diff changeset
40 syn keyword issParam FileName: Parameters: WorkingDir: HotKey: Comment:
c42a15deee64 Update iss syntax file (#11890)
Christian Brabandt <cb@256bit.org>
parents: 25773
diff changeset
41 syn keyword issParam IconFilename: IconIndex:
c42a15deee64 Update iss syntax file (#11890)
Christian Brabandt <cb@256bit.org>
parents: 25773
diff changeset
42 syn keyword issParam Section: Key: String:
c42a15deee64 Update iss syntax file (#11890)
Christian Brabandt <cb@256bit.org>
parents: 25773
diff changeset
43 syn keyword issParam Root: SubKey: ValueType: ValueName: ValueData:
c42a15deee64 Update iss syntax file (#11890)
Christian Brabandt <cb@256bit.org>
parents: 25773
diff changeset
44 syn keyword issParam RunOnceId:
c42a15deee64 Update iss syntax file (#11890)
Christian Brabandt <cb@256bit.org>
parents: 25773
diff changeset
45 syn keyword issParam Type: Excludes:
c42a15deee64 Update iss syntax file (#11890)
Christian Brabandt <cb@256bit.org>
parents: 25773
diff changeset
46 syn keyword issParam Components: Description: GroupDescription: Types: ExtraDiskSpaceRequired:
c42a15deee64 Update iss syntax file (#11890)
Christian Brabandt <cb@256bit.org>
parents: 25773
diff changeset
47 syn keyword issParam StatusMsg: RunOnceId: Tasks:
c42a15deee64 Update iss syntax file (#11890)
Christian Brabandt <cb@256bit.org>
parents: 25773
diff changeset
48 syn keyword issParam MessagesFile: LicenseFile: InfoBeforeFile: InfoAfterFile:
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49
18186
03b854983b14 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
50 syn match issComment "^\s*;.*$" contains=@Spell
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 " folder constant
32766
c42a15deee64 Update iss syntax file (#11890)
Christian Brabandt <cb@256bit.org>
parents: 25773
diff changeset
53 syn match issFolder "{\@1<!{[^{]*}" contains=@NoSpell
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 " string
18186
03b854983b14 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
56 syn region issString start=+"+ end=+"+ contains=issFolder,@Spell
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 " [Dirs]
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 syn keyword issDirsFlags deleteafterinstall uninsalwaysuninstall uninsneveruninstall
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 " [Files]
15
631143ac4a01 updated for version 7.0007
vimboss
parents: 7
diff changeset
62 syn keyword issFilesCopyMode normal onlyifdoesntexist alwaysoverwrite alwaysskipifsameorolder dontcopy
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 syn keyword issFilesAttribs readonly hidden system
15
631143ac4a01 updated for version 7.0007
vimboss
parents: 7
diff changeset
64 syn keyword issFilesPermissions full modify readexec
631143ac4a01 updated for version 7.0007
vimboss
parents: 7
diff changeset
65 syn keyword issFilesFlags allowunsafefiles comparetimestampalso confirmoverwrite deleteafterinstall
32766
c42a15deee64 Update iss syntax file (#11890)
Christian Brabandt <cb@256bit.org>
parents: 25773
diff changeset
66 syn keyword issFilesFlags dontcopy dontverifychecksum external fontisnttruetype ignoreversion
c42a15deee64 Update iss syntax file (#11890)
Christian Brabandt <cb@256bit.org>
parents: 25773
diff changeset
67 syn keyword issFilesFlags isreadme onlyifdestfileexists onlyifdoesntexist overwritereadonly
15
631143ac4a01 updated for version 7.0007
vimboss
parents: 7
diff changeset
68 syn keyword issFilesFlags promptifolder recursesubdirs regserver regtypelib restartreplace
32766
c42a15deee64 Update iss syntax file (#11890)
Christian Brabandt <cb@256bit.org>
parents: 25773
diff changeset
69 syn keyword issFilesFlags sharedfile skipifsourcedoesntexist sortfilesbyextension touch
15
631143ac4a01 updated for version 7.0007
vimboss
parents: 7
diff changeset
70 syn keyword issFilesFlags uninsremovereadonly uninsrestartdelete uninsneveruninstall
32766
c42a15deee64 Update iss syntax file (#11890)
Christian Brabandt <cb@256bit.org>
parents: 25773
diff changeset
71 syn keyword issFilesFlags replacesameversion setntfscompression nocompression noencryption noregerror
39
410fa1a31baf updated for version 7.0023
vimboss
parents: 17
diff changeset
72
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 " [Icons]
32766
c42a15deee64 Update iss syntax file (#11890)
Christian Brabandt <cb@256bit.org>
parents: 25773
diff changeset
75 syn keyword issIconsFlags closeonexit createonlyiffileexists dontcloseonexit
15
631143ac4a01 updated for version 7.0007
vimboss
parents: 7
diff changeset
76 syn keyword issIconsFlags runmaximized runminimized uninsneveruninstall useapppaths
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 " [INI]
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 syn keyword issINIFlags createkeyifdoesntexist uninsdeleteentry uninsdeletesection uninsdeletesectionifempty
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 " [Registry]
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 syn keyword issRegRootKey HKCR HKCU HKLM HKU HKCC
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 syn keyword issRegValueType none string expandsz multisz dword binary
32766
c42a15deee64 Update iss syntax file (#11890)
Christian Brabandt <cb@256bit.org>
parents: 25773
diff changeset
84 syn keyword issRegFlags createvalueifdoesntexist deletekey deletevalue dontcreatekey
c42a15deee64 Update iss syntax file (#11890)
Christian Brabandt <cb@256bit.org>
parents: 25773
diff changeset
85 syn keyword issRegFlags preservestringtype noerror uninsclearvalue
15
631143ac4a01 updated for version 7.0007
vimboss
parents: 7
diff changeset
86 syn keyword issRegFlags uninsdeletekey uninsdeletekeyifempty uninsdeletevalue
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 " [Run] and [UninstallRun]
15
631143ac4a01 updated for version 7.0007
vimboss
parents: 7
diff changeset
89 syn keyword issRunFlags hidewizard nowait postinstall runhidden runmaximized
32766
c42a15deee64 Update iss syntax file (#11890)
Christian Brabandt <cb@256bit.org>
parents: 25773
diff changeset
90 syn keyword issRunFlags runminimized shellexec skipifdoesntexist skipifnotsilent
15
631143ac4a01 updated for version 7.0007
vimboss
parents: 7
diff changeset
91 syn keyword issRunFlags skipifsilent unchecked waituntilidle
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93 " [Types]
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 syn keyword issTypesFlags iscustom
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96 " [Components]
15
631143ac4a01 updated for version 7.0007
vimboss
parents: 7
diff changeset
97 syn keyword issComponentsFlags dontinheritcheck exclusive fixed restart disablenouninstallwarning
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99 " [UninstallDelete] and [InstallDelete]
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100 syn keyword issInstallDeleteType files filesandordirs dirifempty
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101
15
631143ac4a01 updated for version 7.0007
vimboss
parents: 7
diff changeset
102 " [Tasks]
32766
c42a15deee64 Update iss syntax file (#11890)
Christian Brabandt <cb@256bit.org>
parents: 25773
diff changeset
103 syn keyword issTasksFlags checkedonce dontinheritcheck exclusive restart unchecked
15
631143ac4a01 updated for version 7.0007
vimboss
parents: 7
diff changeset
104
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
105
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
106 " Define the default highlighting.
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 39
diff changeset
107 " Only when an item doesn't have highlighting yet
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 39
diff changeset
108
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 39
diff changeset
109 " The default methods for highlighting. Can be overridden later
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
110 hi def link issSection Special
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
111 hi def link issComment Comment
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
112 hi def link issDirective Type
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
113 hi def link issParam Type
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
114 hi def link issFolder Special
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
115 hi def link issString String
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
116 hi def link issURL Include
32766
c42a15deee64 Update iss syntax file (#11890)
Christian Brabandt <cb@256bit.org>
parents: 25773
diff changeset
117 hi def link issPreProc PreProc
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
118
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
119 hi def link issDirsFlags Keyword
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
120 hi def link issFilesCopyMode Keyword
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
121 hi def link issFilesAttribs Keyword
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
122 hi def link issFilesPermissions Keyword
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
123 hi def link issFilesFlags Keyword
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
124 hi def link issIconsFlags Keyword
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
125 hi def link issINIFlags Keyword
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
126 hi def link issRegRootKey Keyword
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
127 hi def link issRegValueType Keyword
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
128 hi def link issRegFlags Keyword
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
129 hi def link issRunFlags Keyword
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
130 hi def link issTypesFlags Keyword
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
131 hi def link issComponentsFlags Keyword
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
132 hi def link issInstallDeleteType Keyword
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
133 hi def link issTasksFlags Keyword
7
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 let b:current_syntax = "iss"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
137
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
138 " vim:ts=8