comparison runtime/syntax/pine.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 61bcafd8c648
children 46763b01cd9a
comparison
equal deleted inserted replaced
10047:a62862410ca1 10048:43efa4f5a8ea
1 " Vim syntax file 1 " Vim syntax file
2 " Language: Pine (email program) run commands 2 " Language: Pine (email program) run commands
3 " Maintainer: David Pascoe <pascoedj@spamcop.net> 3 " Maintainer: David Pascoe <pascoedj@spamcop.net>
4 " Last Change: Thu Feb 27 10:18:48 WST 2003, update for pine 4.53 4 " Last Change: Thu Feb 27 10:18:48 WST 2003, update for pine 4.53
5 5
6 " For version 5.x: Clear all syntax items 6 " quit when a syntax file was already loaded
7 " For version 6.x: Quit when a syntax file was already loaded 7 if exists("b:current_syntax")
8 if version < 600
9 syntax clear
10 elseif exists("b:current_syntax")
11 finish 8 finish
12 endif 9 endif
13 10
14 if version >= 600 11 setlocal iskeyword=@,48-57,_,128-167,224-235,-
15 setlocal iskeyword=@,48-57,_,128-167,224-235,-
16 else
17 set iskeyword=@,48-57,_,128-167,224-235,-
18 endif
19 12
20 syn keyword pineConfig addrbook-sort-rule 13 syn keyword pineConfig addrbook-sort-rule
21 syn keyword pineConfig address-book 14 syn keyword pineConfig address-book
22 syn keyword pineConfig addressbook-formats 15 syn keyword pineConfig addressbook-formats
23 syn keyword pineConfig alt-addresses 16 syn keyword pineConfig alt-addresses
349 syn keyword pineOption vertical-folder-list 342 syn keyword pineOption vertical-folder-list
350 343
351 syn match pineComment "^#.*$" 344 syn match pineComment "^#.*$"
352 345
353 " Define the default highlighting. 346 " Define the default highlighting.
354 " For version 5.7 and earlier: only when not done already 347 " Only when an item doesn't have highlighting yet
355 " For version 5.8 and later: only when an item doesn't have highlighting yet 348 command -nargs=+ HiLink hi def link <args>
356 if version >= 508 || !exists("did_pine_syn_inits") 349
357 if version < 508 350 HiLink pineConfig Type
358 let did_pine_syn_inits = 1 351 HiLink pineComment Comment
359 command -nargs=+ HiLink hi link <args> 352 HiLink pineOption Macro
360 else 353 delcommand HiLink
361 command -nargs=+ HiLink hi def link <args>
362 endif
363
364 HiLink pineConfig Type
365 HiLink pineComment Comment
366 HiLink pineOption Macro
367 delcommand HiLink
368 endif
369 354
370 let b:current_syntax = "pine" 355 let b:current_syntax = "pine"
371 356
372 " vim: ts=8 357 " vim: ts=8