mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
Update iss syntax file (#11890)
- Add 'ExternalSize:' parameter - Add 'setntfscompression' files flag - Fix escaped left brace highlight - Fix 'String:' parameter highlight - Remove trailing whitespace
This commit is contained in:
parent
57a02ccf4c
commit
f9c4c2f97d
@ -2,10 +2,9 @@
|
|||||||
" Language: Inno Setup File (iss file) and My InnoSetup extension
|
" Language: Inno Setup File (iss file) and My InnoSetup extension
|
||||||
" Maintainer: Jason Mills (jmills@cs.mun.ca)
|
" Maintainer: Jason Mills (jmills@cs.mun.ca)
|
||||||
" Previous Maintainer: Dominique Stéphan (dominique@mggen.com)
|
" Previous Maintainer: Dominique Stéphan (dominique@mggen.com)
|
||||||
" Last Change: 2021 Aug 30
|
" Last Change: 2023 Jan 26
|
||||||
"
|
"
|
||||||
" Todo:
|
" Todo:
|
||||||
" - The parameter String: is matched as flag string (because of case ignore).
|
|
||||||
" - Pascal scripting syntax is not recognized.
|
" - Pascal scripting syntax is not recognized.
|
||||||
" - Embedded double quotes confuse string matches. e.g. "asfd""asfa"
|
" - Embedded double quotes confuse string matches. e.g. "asfd""asfa"
|
||||||
|
|
||||||
@ -17,6 +16,9 @@ endif
|
|||||||
" shut case off
|
" shut case off
|
||||||
syn case ignore
|
syn case ignore
|
||||||
|
|
||||||
|
" match keywords with colon
|
||||||
|
syn iskeyword @,48-57,_,192-255,:
|
||||||
|
|
||||||
" Preprocessor
|
" Preprocessor
|
||||||
syn region issPreProc start="^\s*#" end="$"
|
syn region issPreProc start="^\s*#" end="$"
|
||||||
|
|
||||||
@ -30,25 +32,25 @@ syn match issDirective "^[^=]\+="
|
|||||||
syn match issURL "http[s]\=:\/\/.*$"
|
syn match issURL "http[s]\=:\/\/.*$"
|
||||||
|
|
||||||
" Parameters used for any section.
|
" Parameters used for any section.
|
||||||
" syn match issParam"[^: ]\+:"
|
" syn match issParam "[^: ]\+:"
|
||||||
syn match issParam "Name:"
|
syn keyword issParam Name:
|
||||||
syn match issParam "MinVersion:\|OnlyBelowVersion:\|Languages:"
|
syn keyword issParam MinVersion: OnlyBelowVersion: Languages:
|
||||||
syn match issParam "Source:\|DestDir:\|DestName:\|CopyMode:"
|
syn keyword issParam Source: DestDir: DestName: CopyMode: ExternalSize:
|
||||||
syn match issParam "Attribs:\|Permissions:\|FontInstall:\|Flags:"
|
syn keyword issParam Attribs: Permissions: FontInstall: Flags:
|
||||||
syn match issParam "FileName:\|Parameters:\|WorkingDir:\|HotKey:\|Comment:"
|
syn keyword issParam FileName: Parameters: WorkingDir: HotKey: Comment:
|
||||||
syn match issParam "IconFilename:\|IconIndex:"
|
syn keyword issParam IconFilename: IconIndex:
|
||||||
syn match issParam "Section:\|Key:\|String:"
|
syn keyword issParam Section: Key: String:
|
||||||
syn match issParam "Root:\|SubKey:\|ValueType:\|ValueName:\|ValueData:"
|
syn keyword issParam Root: SubKey: ValueType: ValueName: ValueData:
|
||||||
syn match issParam "RunOnceId:"
|
syn keyword issParam RunOnceId:
|
||||||
syn match issParam "Type:\|Excludes:"
|
syn keyword issParam Type: Excludes:
|
||||||
syn match issParam "Components:\|Description:\|GroupDescription:\|Types:\|ExtraDiskSpaceRequired:"
|
syn keyword issParam Components: Description: GroupDescription: Types: ExtraDiskSpaceRequired:
|
||||||
syn match issParam "StatusMsg:\|RunOnceId:\|Tasks:"
|
syn keyword issParam StatusMsg: RunOnceId: Tasks:
|
||||||
syn match issParam "MessagesFile:\|LicenseFile:\|InfoBeforeFile:\|InfoAfterFile:"
|
syn keyword issParam MessagesFile: LicenseFile: InfoBeforeFile: InfoAfterFile:
|
||||||
|
|
||||||
syn match issComment "^\s*;.*$" contains=@Spell
|
syn match issComment "^\s*;.*$" contains=@Spell
|
||||||
|
|
||||||
" folder constant
|
" folder constant
|
||||||
syn match issFolder "{[^{]*}" contains=@NoSpell
|
syn match issFolder "{\@1<!{[^{]*}" contains=@NoSpell
|
||||||
|
|
||||||
" string
|
" string
|
||||||
syn region issString start=+"+ end=+"+ contains=issFolder,@Spell
|
syn region issString start=+"+ end=+"+ contains=issFolder,@Spell
|
||||||
@ -66,7 +68,7 @@ syn keyword issFilesFlags isreadme onlyifdestfileexists onlyifdoesntexist overwr
|
|||||||
syn keyword issFilesFlags promptifolder recursesubdirs regserver regtypelib restartreplace
|
syn keyword issFilesFlags promptifolder recursesubdirs regserver regtypelib restartreplace
|
||||||
syn keyword issFilesFlags sharedfile skipifsourcedoesntexist sortfilesbyextension touch
|
syn keyword issFilesFlags sharedfile skipifsourcedoesntexist sortfilesbyextension touch
|
||||||
syn keyword issFilesFlags uninsremovereadonly uninsrestartdelete uninsneveruninstall
|
syn keyword issFilesFlags uninsremovereadonly uninsrestartdelete uninsneveruninstall
|
||||||
syn keyword issFilesFlags replacesameversion nocompression noencryption noregerror
|
syn keyword issFilesFlags replacesameversion setntfscompression nocompression noencryption noregerror
|
||||||
|
|
||||||
|
|
||||||
" [Icons]
|
" [Icons]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user