Mercurial > vim
comparison runtime/syntax/iss.vim @ 17:9be87deaeb52 v7.0009
updated for version 7.0009
author | vimboss |
---|---|
date | Fri, 16 Jul 2004 20:18:37 +0000 |
parents | 631143ac4a01 |
children | 410fa1a31baf |
comparison
equal
deleted
inserted
replaced
16:3ba373b54370 | 17:9be87deaeb52 |
---|---|
1 " Vim syntax file | 1 " Vim syntax file |
2 " Language: Inno Setup File (iss file) and My InnoSetup extension | 2 " Language: Inno Setup File (iss file) and My InnoSetup extension |
3 " Maintainer: Dominique Stéphan (dominique@mggen.com) | 3 " Maintainer: Jason Mills (jmills@cs.mun.ca) |
4 " Last change: 2004 July 5 | 4 " Previous Maintainer: Dominique Stéphan (dominique@mggen.com) |
5 " Last Change: 2004 Jul 13 | |
5 | 6 |
6 " For version 5.x: Clear all syntax items | 7 " For version 5.x: Clear all syntax items |
7 " For version 6.x: Quit when a syntax file was already loaded | 8 " For version 6.x: Quit when a syntax file was already loaded |
8 if version < 600 | 9 if version < 600 |
9 syntax clear | 10 syntax clear |
12 endif | 13 endif |
13 | 14 |
14 " shut case off | 15 " shut case off |
15 syn case ignore | 16 syn case ignore |
16 | 17 |
18 " Preprocessor | |
19 syn region issPreProc start="^\s*#" end="$" | |
20 | |
17 " Section | 21 " Section |
18 syn region issHeader start="\[" end="\]" | 22 syn region issHeader start="\[" end="\]" |
19 | 23 |
20 " Label in the [Setup] Section | 24 " Label in the [Setup] Section |
21 syn match issLabel "^[^=]\+=" | 25 syn match issLabel "^[^=]\+=" |
22 | 26 |
23 " URL | 27 " URL |
24 syn match issURL "http[s]\=:\/\/.*$" | 28 syn match issURL "http[s]\=:\/\/.*$" |
25 | 29 |
26 " syn match issName "[^: ]\+:" | 30 " syn match issName "[^: ]\+:" |
27 syn match issName "Name:" | 31 syn match issName "Name:" |
28 syn match issName "MinVersion:\|OnlyBelowVersion:\|Languages:" | 32 syn match issName "MinVersion:\|OnlyBelowVersion:\|Languages:" |
29 syn match issName "Source:\|DestDir:\|DestName:\|CopyMode:" | 33 syn match issName "Source:\|DestDir:\|DestName:\|CopyMode:" |
30 syn match issName "Attribs:\|Permissions:\|FontInstall:\|Flags:" | 34 syn match issName "Attribs:\|Permissions:\|FontInstall:\|Flags:" |
31 syn match issName "FileName:\|Parameters:\|WorkingDir:\|HotKey:\|Comment:" | 35 syn match issName "FileName:\|Parameters:\|WorkingDir:\|HotKey:\|Comment:" |
32 syn match issName "IconFilename:\|IconIndex:" | 36 syn match issName "IconFilename:\|IconIndex:" |
33 syn match issName "Section:\|Key:\|String:" | 37 syn match issName "Section:\|Key:\|String:" |
34 syn match issName "Root:\|SubKey:\|ValueType:\|ValueName:\|ValueData:" | 38 syn match issName "Root:\|SubKey:\|ValueType:\|ValueName:\|ValueData:" |
35 syn match issName "RunOnceId:" | 39 syn match issName "RunOnceId:" |
36 syn match issName "Type:" | 40 syn match issName "Type:" |
37 syn match issName "Components:\|Description:\|GroupDescription:\|Types:\|ExtraDiskSpaceRequired:" | 41 syn match issName "Components:\|Description:\|GroupDescription:\|Types:\|ExtraDiskSpaceRequired:" |
38 syn match issName "StatusMsg:\|RunOnceId:\|Tasks:" | 42 syn match issName "StatusMsg:\|RunOnceId:\|Tasks:" |
39 syn match issName "MessagesFile:\|LicenseFile:\|InfoBeforeFile:\|InfoAfterFile:" | 43 syn match issName "MessagesFile:\|LicenseFile:\|InfoBeforeFile:\|InfoAfterFile:" |
40 | 44 |
41 syn match issComment "^;.*$" | 45 syn match issComment "^;.*$" |
42 | 46 |
43 " folder constant | 47 " folder constant |
44 syn match issFolder "{[^{]*}" | 48 syn match issFolder "{[^{]*}" |
45 | 49 |
46 " string | 50 " string |
47 syn region issString start=+"+ end=+"+ contains=issFolder | 51 syn region issString start=+"+ end=+"+ contains=issFolder |
48 | 52 |
49 " [Dirs] | 53 " [Dirs] |
50 syn keyword issDirsFlags deleteafterinstall uninsalwaysuninstall uninsneveruninstall | 54 syn keyword issDirsFlags deleteafterinstall uninsalwaysuninstall uninsneveruninstall |
51 | 55 |
52 " [Files] | 56 " [Files] |
102 else | 106 else |
103 command -nargs=+ HiLink hi def link <args> | 107 command -nargs=+ HiLink hi def link <args> |
104 endif | 108 endif |
105 | 109 |
106 " The default methods for highlighting. Can be overridden later | 110 " The default methods for highlighting. Can be overridden later |
107 HiLink issHeader Special | 111 HiLink issHeader Special |
108 HiLink issComment Comment | 112 HiLink issComment Comment |
109 HiLink issLabel Type | 113 HiLink issLabel Type |
110 HiLink issName Type | 114 HiLink issName Type |
111 HiLink issFolder Special | 115 HiLink issFolder Special |
112 HiLink issString String | 116 HiLink issString String |
113 HiLink issValue String | 117 HiLink issValue String |
114 HiLink issURL Include | 118 HiLink issURL Include |
119 HiLink issPreProc PreProc | |
115 | 120 |
116 HiLink issDirsFlags Keyword | 121 HiLink issDirsFlags Keyword |
117 HiLink issFilesCopyMode Keyword | 122 HiLink issFilesCopyMode Keyword |
118 HiLink issFilesAttribs Keyword | 123 HiLink issFilesAttribs Keyword |
119 HiLink issFilesPermissions Keyword | 124 HiLink issFilesFlags Keyword |
120 HiLink issFilesFlags Keyword | 125 HiLink issIconsFlags Keyword |
121 HiLink issIconsFlags Keyword | 126 HiLink issINIFlags Keyword |
122 HiLink issINIFlags Keyword | 127 HiLink issRegRootKey Keyword |
123 HiLink issRegRootKey Keyword | 128 HiLink issRegValueType Keyword |
124 HiLink issRegValueType Keyword | 129 HiLink issRegFlags Keyword |
125 HiLink issRegFlags Keyword | 130 HiLink issRunFlags Keyword |
126 HiLink issRunFlags Keyword | 131 HiLink issTypesFlags Keyword |
127 HiLink issTypesFlags Keyword | 132 HiLink issComponentsFlags Keyword |
128 HiLink issComponentsFlags Keyword | 133 HiLink issInstallDeleteType Keyword |
129 HiLink issInstallDeleteType Keyword | 134 HiLink issTasksFlags Keyword |
130 HiLink issTasksFlags Keyword | |
131 | |
132 | 135 |
133 delcommand HiLink | 136 delcommand HiLink |
134 endif | 137 endif |
135 | 138 |
136 let b:current_syntax = "iss" | 139 let b:current_syntax = "iss" |