comparison runtime/syntax/pcap.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 3fc0f57ecb91
children 46763b01cd9a
comparison
equal deleted inserted replaced
10047:a62862410ca1 10048:43efa4f5a8ea
2 " Config file: printcap 2 " Config file: printcap
3 " Maintainer: Lennart Schultz <Lennart.Schultz@ecmwf.int> (defunct) 3 " Maintainer: Lennart Schultz <Lennart.Schultz@ecmwf.int> (defunct)
4 " Modified by Bram 4 " Modified by Bram
5 " Last Change: 2003 May 11 5 " Last Change: 2003 May 11
6 6
7 " For version 5.x: Clear all syntax items 7 " quit when a syntax file was already loaded
8 " For version 6.x: Quit when a syntax file was already loaded 8 if exists("b:current_syntax")
9 if version < 600
10 syntax clear
11 elseif exists("b:current_syntax")
12 finish 9 finish
13 endif 10 endif
14 11
15 "define keywords 12 "define keywords
16 if version < 600 13 setlocal isk=@,46-57,_,-,#,=,192-255
17 set isk=@,46-57,_,-,#,=,192-255
18 else
19 setlocal isk=@,46-57,_,-,#,=,192-255
20 endif
21 14
22 "first all the bad guys 15 "first all the bad guys
23 syn match pcapBad '^.\+$' "define any line as bad 16 syn match pcapBad '^.\+$' "define any line as bad
24 syn match pcapBadword '\k\+' contained "define any sequence of keywords as bad 17 syn match pcapBadword '\k\+' contained "define any sequence of keywords as bad
25 syn match pcapBadword ':' contained "define any single : as bad 18 syn match pcapBadword ':' contained "define any single : as bad
41 34
42 syn sync minlines=50 35 syn sync minlines=50
43 36
44 37
45 " Define the default highlighting. 38 " Define the default highlighting.
46 " For version 5.7 and earlier: only when not done already 39 " Only when an item doesn't have highlighting yet
47 " For version 5.8 and later: only when an item doesn't have highlighting yet 40 command -nargs=+ HiLink hi def link <args>
48 if version >= 508 || !exists("did_pcap_syntax_inits")
49 if version < 508
50 let did_pcap_syntax_inits = 1
51 command -nargs=+ HiLink hi link <args>
52 else
53 command -nargs=+ HiLink hi def link <args>
54 endif
55 41
56 HiLink pcapBad WarningMsg 42 HiLink pcapBad WarningMsg
57 HiLink pcapBadword WarningMsg 43 HiLink pcapBadword WarningMsg
58 HiLink pcapComment Comment 44 HiLink pcapComment Comment
59 45
60 delcommand HiLink 46 delcommand HiLink
61 endif
62 47
63 let b:current_syntax = "pcap" 48 let b:current_syntax = "pcap"
64 49
65 " vim: ts=8 50 " vim: ts=8