comparison runtime/syntax/spec.vim @ 20552:74e3316c1d5a

Update runtime files Commit: https://github.com/vim/vim/commit/388a5d4f20b4b64341d1604aa238cab85827b892 Author: Bram Moolenaar <Bram@vim.org> Date: Tue May 26 21:20:45 2020 +0200 Update runtime files
author Bram Moolenaar <Bram@vim.org>
date Tue, 26 May 2020 21:30:04 +0200
parents 7be3663e2f2b
children d46f974fd69e
comparison
equal deleted inserted replaced
20551:f1b23a9643fe 20552:74e3316c1d5a
1 " Filename: spec.vim 1 " Filename: spec.vim
2 " Purpose: Vim syntax file 2 " Purpose: Vim syntax file
3 " Language: SPEC: Build/install scripts for Linux RPM packages 3 " Language: SPEC: Build/install scripts for Linux RPM packages
4 " Maintainer: Igor Gnatenko i.gnatenko.brain@gmail.com 4 " Maintainer: Igor Gnatenko i.gnatenko.brain@gmail.com
5 " Former Maintainer: Donovan Rebbechi elflord@panix.com (until March 2014) 5 " Former Maintainer: Donovan Rebbechi elflord@panix.com (until March 2014)
6 " Last Change: 2020 Feb 07 6 " Last Change: 2020 May 25
7 7
8 " quit when a syntax file was already loaded 8 " quit when a syntax file was already loaded
9 if exists("b:current_syntax") 9 if exists("b:current_syntax")
10 finish 10 finish
11 endif 11 endif
125 syn case match 125 syn case match
126 126
127 127
128 "sh-like comment stile, only valid in script part 128 "sh-like comment stile, only valid in script part
129 syn match shComment contained '#.*$' 129 syn match shComment contained '#.*$'
130
131 syn region dnlComment matchgroup=specComment start=+%dnl+ end=+$+
130 132
131 syn region shQuote1 contained matchgroup=shQuoteDelim start=+'+ skip=+\\'+ end=+'+ contains=specMacroIdentifier 133 syn region shQuote1 contained matchgroup=shQuoteDelim start=+'+ skip=+\\'+ end=+'+ contains=specMacroIdentifier
132 syn region shQuote2 contained matchgroup=shQuoteDelim start=+"+ skip=+\\"+ end=+"+ contains=specVariables,specMacroIdentifier 134 syn region shQuote2 contained matchgroup=shQuoteDelim start=+"+ skip=+\\"+ end=+"+ contains=specVariables,specMacroIdentifier
133 135
134 syn match shOperator contained '[><|!&;]\|[!=]=' 136 syn match shOperator contained '[><|!&;]\|[!=]='
171 hi def link specGlobalMacro Identifier 173 hi def link specGlobalMacro Identifier
172 endif 174 endif
173 175
174 "sh colors 176 "sh colors
175 hi def link shComment Comment 177 hi def link shComment Comment
178 hi def link dnlComment Comment
176 hi def link shIf Statement 179 hi def link shIf Statement
177 hi def link shOperator Special 180 hi def link shOperator Special
178 hi def link shQuote1 String 181 hi def link shQuote1 String
179 hi def link shQuote2 String 182 hi def link shQuote2 String
180 hi def link shQuoteDelim Statement 183 hi def link shQuoteDelim Statement