Mercurial > vim
annotate runtime/syntax/iss.vim @ 31489:966c87c57912 v9.0.1077
patch 9.0.1077: can add text property with negative ID before virtual text
Commit: https://github.com/vim/vim/commit/4ce1f99a2d58b809ab5a5c602bd031426f8527e8
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Dec 19 13:31:06 2022 +0000
patch 9.0.1077: can add text property with negative ID before virtual text
Problem: Can add text property with negative ID before virtual text
property.
Solution: Remember that a text property with a negative ID was used and give
an appropriate error message. (closes #11725)
Fix index computation.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 19 Dec 2022 14:45:04 +0100 |
parents | 11b656e74444 |
children | c42a15deee64 |
rev | line source |
---|---|
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) | |
22723 | 4 " Previous Maintainer: Dominique Stéphan (dominique@mggen.com) |
25773 | 5 " Last Change: 2021 Aug 30 |
39 | 6 " |
7 " Todo: | |
25773 | 8 " - The parameter String: is matched as flag string (because of case ignore). |
39 | 9 " - Pascal scripting syntax is not recognized. |
10 " - Embedded double quotes confuse string matches. e.g. "asfd""asfa" | |
7 | 11 |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
39
diff
changeset
|
12 " 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
|
13 if exists("b:current_syntax") |
7 | 14 finish |
15 endif | |
16 | |
17 " shut case off | |
18 syn case ignore | |
19 | |
17 | 20 " Preprocessor |
21 syn region issPreProc start="^\s*#" end="$" | |
22 | |
7 | 23 " Section |
39 | 24 syn region issSection start="\[" end="\]" |
7 | 25 |
26 " Label in the [Setup] Section | |
39 | 27 syn match issDirective "^[^=]\+=" |
7 | 28 |
29 " URL | |
39 | 30 syn match issURL "http[s]\=:\/\/.*$" |
7 | 31 |
39 | 32 " Parameters used for any section. |
33 " syn match issParam"[^: ]\+:" | |
34 syn match issParam "Name:" | |
35 syn match issParam "MinVersion:\|OnlyBelowVersion:\|Languages:" | |
36 syn match issParam "Source:\|DestDir:\|DestName:\|CopyMode:" | |
37 syn match issParam "Attribs:\|Permissions:\|FontInstall:\|Flags:" | |
38 syn match issParam "FileName:\|Parameters:\|WorkingDir:\|HotKey:\|Comment:" | |
39 syn match issParam "IconFilename:\|IconIndex:" | |
40 syn match issParam "Section:\|Key:\|String:" | |
41 syn match issParam "Root:\|SubKey:\|ValueType:\|ValueName:\|ValueData:" | |
42 syn match issParam "RunOnceId:" | |
43 syn match issParam "Type:\|Excludes:" | |
44 syn match issParam "Components:\|Description:\|GroupDescription:\|Types:\|ExtraDiskSpaceRequired:" | |
45 syn match issParam "StatusMsg:\|RunOnceId:\|Tasks:" | |
46 syn match issParam "MessagesFile:\|LicenseFile:\|InfoBeforeFile:\|InfoAfterFile:" | |
7 | 47 |
18186 | 48 syn match issComment "^\s*;.*$" contains=@Spell |
7 | 49 |
50 " folder constant | |
18186 | 51 syn match issFolder "{[^{]*}" contains=@NoSpell |
7 | 52 |
53 " string | |
18186 | 54 syn region issString start=+"+ end=+"+ contains=issFolder,@Spell |
7 | 55 |
56 " [Dirs] | |
57 syn keyword issDirsFlags deleteafterinstall uninsalwaysuninstall uninsneveruninstall | |
58 | |
59 " [Files] | |
15 | 60 syn keyword issFilesCopyMode normal onlyifdoesntexist alwaysoverwrite alwaysskipifsameorolder dontcopy |
7 | 61 syn keyword issFilesAttribs readonly hidden system |
15 | 62 syn keyword issFilesPermissions full modify readexec |
63 syn keyword issFilesFlags allowunsafefiles comparetimestampalso confirmoverwrite deleteafterinstall | |
64 syn keyword issFilesFlags dontcopy dontverifychecksum external fontisnttruetype ignoreversion | |
65 syn keyword issFilesFlags isreadme onlyifdestfileexists onlyifdoesntexist overwritereadonly | |
66 syn keyword issFilesFlags promptifolder recursesubdirs regserver regtypelib restartreplace | |
67 syn keyword issFilesFlags sharedfile skipifsourcedoesntexist sortfilesbyextension touch | |
68 syn keyword issFilesFlags uninsremovereadonly uninsrestartdelete uninsneveruninstall | |
39 | 69 syn keyword issFilesFlags replacesameversion nocompression noencryption noregerror |
70 | |
7 | 71 |
72 " [Icons] | |
15 | 73 syn keyword issIconsFlags closeonexit createonlyiffileexists dontcloseonexit |
74 syn keyword issIconsFlags runmaximized runminimized uninsneveruninstall useapppaths | |
7 | 75 |
76 " [INI] | |
77 syn keyword issINIFlags createkeyifdoesntexist uninsdeleteentry uninsdeletesection uninsdeletesectionifempty | |
78 | |
79 " [Registry] | |
80 syn keyword issRegRootKey HKCR HKCU HKLM HKU HKCC | |
81 syn keyword issRegValueType none string expandsz multisz dword binary | |
15 | 82 syn keyword issRegFlags createvalueifdoesntexist deletekey deletevalue dontcreatekey |
83 syn keyword issRegFlags preservestringtype noerror uninsclearvalue | |
84 syn keyword issRegFlags uninsdeletekey uninsdeletekeyifempty uninsdeletevalue | |
7 | 85 |
86 " [Run] and [UninstallRun] | |
15 | 87 syn keyword issRunFlags hidewizard nowait postinstall runhidden runmaximized |
88 syn keyword issRunFlags runminimized shellexec skipifdoesntexist skipifnotsilent | |
89 syn keyword issRunFlags skipifsilent unchecked waituntilidle | |
7 | 90 |
91 " [Types] | |
92 syn keyword issTypesFlags iscustom | |
93 | |
94 " [Components] | |
15 | 95 syn keyword issComponentsFlags dontinheritcheck exclusive fixed restart disablenouninstallwarning |
7 | 96 |
97 " [UninstallDelete] and [InstallDelete] | |
98 syn keyword issInstallDeleteType files filesandordirs dirifempty | |
99 | |
15 | 100 " [Tasks] |
101 syn keyword issTasksFlags checkedonce dontinheritcheck exclusive restart unchecked | |
102 | |
7 | 103 |
104 " Define the default highlighting. | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
39
diff
changeset
|
105 " 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
|
106 |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
39
diff
changeset
|
107 " 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
|
108 hi def link issSection Special |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
109 hi def link issComment Comment |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
110 hi def link issDirective Type |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
111 hi def link issParam Type |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
112 hi def link issFolder Special |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
113 hi def link issString String |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
114 hi def link issURL Include |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
115 hi def link issPreProc PreProc |
7 | 116 |
10051
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
117 hi def link issDirsFlags Keyword |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
118 hi def link issFilesCopyMode Keyword |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
119 hi def link issFilesAttribs Keyword |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
120 hi def link issFilesPermissions Keyword |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
121 hi def link issFilesFlags Keyword |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
122 hi def link issIconsFlags Keyword |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
123 hi def link issINIFlags Keyword |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
124 hi def link issRegRootKey Keyword |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
125 hi def link issRegValueType Keyword |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
126 hi def link issRegFlags Keyword |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
127 hi def link issRunFlags Keyword |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
128 hi def link issTypesFlags Keyword |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
129 hi def link issComponentsFlags Keyword |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
130 hi def link issInstallDeleteType Keyword |
46763b01cd9a
commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents:
10048
diff
changeset
|
131 hi def link issTasksFlags Keyword |
7 | 132 |
133 | |
134 let b:current_syntax = "iss" | |
135 | |
136 " vim:ts=8 |