Mercurial > vim
comparison runtime/syntax/nroff.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 | b7811ab264bf |
children | 46763b01cd9a |
comparison
equal
deleted
inserted
replaced
10047:a62862410ca1 | 10048:43efa4f5a8ea |
---|---|
20 " and integrate with nroff.vim. | 20 " and integrate with nroff.vim. |
21 " | 21 " |
22 " | 22 " |
23 " {{{1 Start syntax highlighting. | 23 " {{{1 Start syntax highlighting. |
24 " | 24 " |
25 " For version 5.x: Clear all syntax items | 25 " quit when a syntax file was already loaded |
26 " For version 6.x: Quit when a syntax file was already loaded | 26 " |
27 " | 27 if exists("b:current_syntax") |
28 if version < 600 | |
29 syntax clear | |
30 elseif exists("b:current_syntax") | |
31 finish | 28 finish |
32 endif | 29 endif |
33 | 30 |
34 let s:cpo_save = &cpo | 31 let s:cpo_save = &cpo |
35 set cpo&vim | 32 set cpo&vim |
195 " ------------------------------------------------------------ | 192 " ------------------------------------------------------------ |
196 " | 193 " |
197 | 194 |
198 " | 195 " |
199 " Define the default highlighting. | 196 " Define the default highlighting. |
200 " For version 5.7 and earlier: only when not done already | 197 " Only when an item doesn't have highlighting yet |
201 " For version 5.8 and later: only when an item doesn't have highlighting yet | 198 " |
202 " | 199 command -nargs=+ HiLink hi def link <args> |
203 if version >= 508 || !exists("did_nroff_syn_inits") | 200 |
204 | 201 HiLink nroffEscChar nroffSpecialChar |
205 if version < 508 | 202 HiLink nroffEscCharAr nroffSpecialChar |
206 let did_nroff_syn_inits = 1 | 203 HiLink nroffSpecialChar SpecialChar |
207 command -nargs=+ HiLink hi link <args> | 204 HiLink nroffSpace Delimiter |
208 else | 205 |
209 command -nargs=+ HiLink hi def link <args> | 206 HiLink nroffEscRegArg2 nroffEscRegArg |
210 endif | 207 HiLink nroffEscRegArg nroffIdent |
211 | 208 |
212 HiLink nroffEscChar nroffSpecialChar | 209 HiLink nroffEscArg2 nroffEscArg |
213 HiLink nroffEscCharAr nroffSpecialChar | 210 HiLink nroffEscPar nroffEscape |
214 HiLink nroffSpecialChar SpecialChar | 211 |
215 HiLink nroffSpace Delimiter | 212 HiLink nroffEscRegPar nroffEscape |
216 | 213 HiLink nroffEscArg nroffEscape |
217 HiLink nroffEscRegArg2 nroffEscRegArg | 214 HiLink nroffSize nroffEscape |
218 HiLink nroffEscRegArg nroffIdent | 215 HiLink nroffEscape Preproc |
219 | 216 |
220 HiLink nroffEscArg2 nroffEscArg | 217 HiLink nroffIgnore Comment |
221 HiLink nroffEscPar nroffEscape | 218 HiLink nroffComment Comment |
222 | 219 HiLink nroffTodo Todo |
223 HiLink nroffEscRegPar nroffEscape | 220 |
224 HiLink nroffEscArg nroffEscape | 221 HiLink nroffReqLeader nroffRequest |
225 HiLink nroffSize nroffEscape | 222 HiLink nroffReqName nroffRequest |
226 HiLink nroffEscape Preproc | 223 HiLink nroffRequest Statement |
227 | 224 HiLink nroffCond PreCondit |
228 HiLink nroffIgnore Comment | 225 HiLink nroffDefIdent nroffIdent |
229 HiLink nroffComment Comment | 226 HiLink nroffIdent Identifier |
230 HiLink nroffTodo Todo | 227 |
231 | 228 HiLink nroffEquation PreProc |
232 HiLink nroffReqLeader nroffRequest | 229 HiLink nroffTable PreProc |
233 HiLink nroffReqName nroffRequest | 230 HiLink nroffPicture PreProc |
234 HiLink nroffRequest Statement | 231 HiLink nroffRefer PreProc |
235 HiLink nroffCond PreCondit | 232 HiLink nroffGrap PreProc |
236 HiLink nroffDefIdent nroffIdent | 233 HiLink nroffGremlin PreProc |
237 HiLink nroffIdent Identifier | 234 |
238 | 235 HiLink nroffNumber Number |
239 HiLink nroffEquation PreProc | 236 HiLink nroffBadChar nroffError |
240 HiLink nroffTable PreProc | 237 HiLink nroffSpaceError nroffError |
241 HiLink nroffPicture PreProc | 238 HiLink nroffError Error |
242 HiLink nroffRefer PreProc | 239 |
243 HiLink nroffGrap PreProc | 240 HiLink nroffPreserve String |
244 HiLink nroffGremlin PreProc | 241 HiLink nroffString String |
245 | 242 HiLink nroffDefinition String |
246 HiLink nroffNumber Number | 243 HiLink nroffDefSpecial Special |
247 HiLink nroffBadChar nroffError | 244 |
248 HiLink nroffSpaceError nroffError | 245 delcommand HiLink |
249 HiLink nroffError Error | |
250 | |
251 HiLink nroffPreserve String | |
252 HiLink nroffString String | |
253 HiLink nroffDefinition String | |
254 HiLink nroffDefSpecial Special | |
255 | |
256 delcommand HiLink | |
257 | |
258 endif | |
259 | 246 |
260 let b:current_syntax = "nroff" | 247 let b:current_syntax = "nroff" |
261 | 248 |
262 let &cpo = s:cpo_save | 249 let &cpo = s:cpo_save |
263 unlet s:cpo_save | 250 unlet s:cpo_save |