robin/laufey

git clone https://git.robinwobin.dev/robin/laufey

zeertzjqvim-patch:62d8f3d: runtime: Revert several "mark invalid contact addresses" commits (#37192)ab20681c52

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