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