comparison runtime/syntax/docbk.vim @ 10048:43efa4f5a8ea

commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Aug 30 23:26:57 2016 +0200 Updated runtime files. Remove version checks for Vim older than 6.0.
author Christian Brabandt <cb@256bit.org>
date Tue, 30 Aug 2016 23:30:09 +0200
parents fdb8a9c7bd91
children 46763b01cd9a
comparison
equal deleted inserted replaced
10047:a62862410ca1 10048:43efa4f5a8ea
11 " REFERENCES: 11 " REFERENCES:
12 " http://docbook.org/ 12 " http://docbook.org/
13 " http://www.open-oasis.org/docbook/ 13 " http://www.open-oasis.org/docbook/
14 " 14 "
15 15
16 " For version 5.x: Clear all syntax items 16 " quit when a syntax file was already loaded
17 " For version 6.x: Quit when a syntax file was already loaded 17 if exists("b:current_syntax")
18 if version < 600
19 syntax clear
20 elseif exists("b:current_syntax")
21 finish 18 finish
22 endif 19 endif
23 20
24 " Auto detect added by Bram Moolenaar 21 " Auto detect added by Bram Moolenaar
25 if !exists('b:docbk_type') 22 if !exists('b:docbk_type')
172 syn region docbkRemark start="<remark>"lc=8 end="</remark>"me=e-9 contains=xmlRegion,xmlEntity,sgmlRegion,sgmlEntity keepend 169 syn region docbkRemark start="<remark>"lc=8 end="</remark>"me=e-9 contains=xmlRegion,xmlEntity,sgmlRegion,sgmlEntity keepend
173 syn region docbkRemark start="<comment>"lc=9 end="</comment>"me=e-10 contains=xmlRegion,xmlEntity,sgmlRegion,sgmlEntity keepend 170 syn region docbkRemark start="<comment>"lc=9 end="</comment>"me=e-10 contains=xmlRegion,xmlEntity,sgmlRegion,sgmlEntity keepend
174 syn region docbkCite start="<citation>"lc=10 end="</citation>"me=e-11 contains=xmlRegion,xmlEntity,sgmlRegion,sgmlEntity keepend 171 syn region docbkCite start="<citation>"lc=10 end="</citation>"me=e-11 contains=xmlRegion,xmlEntity,sgmlRegion,sgmlEntity keepend
175 172
176 " Define the default highlighting. 173 " Define the default highlighting.
177 " For version 5.7 and earlier: only when not done already 174 " Only when an item doesn't have highlighting yet
178 " For version 5.8 and later: only when an item doesn't have highlighting yet 175 command -nargs=+ HiLink hi def link <args>
179 if version >= 508 || !exists("did_docbk_syn_inits") 176 hi def DocbkBold term=bold cterm=bold gui=bold
180 if version < 508
181 let did_docbk_syn_inits = 1
182 command -nargs=+ HiLink hi link <args>
183 hi DocbkBold term=bold cterm=bold gui=bold
184 else
185 command -nargs=+ HiLink hi def link <args>
186 hi def DocbkBold term=bold cterm=bold gui=bold
187 endif
188 177
189 HiLink docbkKeyword Statement 178 HiLink docbkKeyword Statement
190 HiLink docbkRegion DocbkBold 179 HiLink docbkRegion DocbkBold
191 HiLink docbkTitle Title 180 HiLink docbkTitle Title
192 HiLink docbkRemark Comment 181 HiLink docbkRemark Comment
193 HiLink docbkCite Constant 182 HiLink docbkCite Constant
194 183
195 delcommand HiLink 184 delcommand HiLink
196 endif
197 185
198 let b:current_syntax = "docbk" 186 let b:current_syntax = "docbk"
199 187
200 " vim: ts=8 188 " vim: ts=8