Mercurial > vim
comparison runtime/syntax/dtd.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 | dd6c2497c997 |
children | 46763b01cd9a |
comparison
equal
deleted
inserted
replaced
10047:a62862410ca1 | 10048:43efa4f5a8ea |
---|---|
124 syn keyword dtdTodo contained TODO FIXME XXX | 124 syn keyword dtdTodo contained TODO FIXME XXX |
125 | 125 |
126 syn sync lines=250 | 126 syn sync lines=250 |
127 | 127 |
128 " Define the default highlighting. | 128 " Define the default highlighting. |
129 " For version 5.7 and earlier: only when not done already | 129 " Only when an item doesn't have highlighting yet |
130 " For version 5.8 and later: only when an item doesn't have highlighting yet | 130 command -nargs=+ HiLink hi def link <args> |
131 if version >= 508 || !exists("did_dtd_syn_inits") | |
132 if version < 508 | |
133 let did_dtd_syn_inits = 1 | |
134 command -nargs=+ HiLink hi link <args> | |
135 else | |
136 command -nargs=+ HiLink hi def link <args> | |
137 endif | |
138 | 131 |
139 " The default highlighting. | 132 " The default highlighting. |
140 HiLink dtdFunction Function | 133 HiLink dtdFunction Function |
141 HiLink dtdTag Normal | 134 HiLink dtdTag Normal |
142 HiLink dtdType Type | 135 HiLink dtdType Type |
143 HiLink dtdAttrType dtdType | 136 HiLink dtdAttrType dtdType |
144 HiLink dtdAttrDef dtdType | 137 HiLink dtdAttrDef dtdType |
145 HiLink dtdConstant Constant | 138 HiLink dtdConstant Constant |
146 HiLink dtdString dtdConstant | 139 HiLink dtdString dtdConstant |
147 HiLink dtdEnum dtdConstant | 140 HiLink dtdEnum dtdConstant |
148 HiLink dtdCard dtdFunction | 141 HiLink dtdCard dtdFunction |
149 | 142 |
150 HiLink dtdEntity Statement | 143 HiLink dtdEntity Statement |
151 HiLink dtdEntityPunct dtdType | 144 HiLink dtdEntityPunct dtdType |
152 HiLink dtdParamEntityInst dtdConstant | 145 HiLink dtdParamEntityInst dtdConstant |
153 HiLink dtdParamEntityPunct dtdType | 146 HiLink dtdParamEntityPunct dtdType |
154 HiLink dtdParamEntityDecl dtdType | 147 HiLink dtdParamEntityDecl dtdType |
155 HiLink dtdParamEntityDPunct dtdComment | 148 HiLink dtdParamEntityDPunct dtdComment |
156 | 149 |
157 HiLink dtdComment Comment | 150 HiLink dtdComment Comment |
158 HiLink dtdTagName Statement | 151 HiLink dtdTagName Statement |
159 HiLink dtdError Error | 152 HiLink dtdError Error |
160 HiLink dtdTodo Todo | 153 HiLink dtdTodo Todo |
161 | 154 |
162 delcommand HiLink | 155 delcommand HiLink |
163 endif | |
164 | 156 |
165 let &cpo = s:dtd_cpo_save | 157 let &cpo = s:dtd_cpo_save |
166 unlet s:dtd_cpo_save | 158 unlet s:dtd_cpo_save |
167 | 159 |
168 let b:current_syntax = "dtd" | 160 let b:current_syntax = "dtd" |