comparison runtime/syntax/samba.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 7bc41231fbc7
children 46763b01cd9a
comparison
equal deleted inserted replaced
10047:a62862410ca1 10048:43efa4f5a8ea
6 " 6 "
7 " New maintainer wanted! 7 " New maintainer wanted!
8 " 8 "
9 " Don't forget to run your config file through testparm(1)! 9 " Don't forget to run your config file through testparm(1)!
10 10
11 " For version 5.x: Clear all syntax items 11 " quit when a syntax file was already loaded
12 " For version 6.x: Quit when a syntax file was already loaded 12 if exists("b:current_syntax")
13 if version < 600
14 syntax clear
15 elseif exists("b:current_syntax")
16 finish 13 finish
17 endif 14 endif
18 15
19 syn case ignore 16 syn case ignore
20 17
105 syn keyword sambaKeyword contained reported rid schannel sendfile sharing 102 syn keyword sambaKeyword contained reported rid schannel sendfile sharing
106 syn keyword sambaKeyword contained shutdown signing special spnego 103 syn keyword sambaKeyword contained shutdown signing special spnego
107 syn keyword sambaKeyword contained store unknown unwriteable 104 syn keyword sambaKeyword contained store unknown unwriteable
108 105
109 " Define the default highlighting. 106 " Define the default highlighting.
110 " For version 5.7 and earlier: only when not done already 107 " Only when an item doesn't have highlighting yet
111 " For version 5.8 and later: only when an item doesn't have highlighting yet 108 command -nargs=+ HiLink hi def link <args>
112 if version >= 508 || !exists("did_samba_syn_inits") 109 HiLink sambaParameter Normal
113 if version < 508 110 HiLink sambaKeyword Type
114 let did_samba_syn_inits = 1 111 HiLink sambaSection Statement
115 command -nargs=+ HiLink hi link <args> 112 HiLink sambaMacro PreProc
116 else 113 HiLink sambaComment Comment
117 command -nargs=+ HiLink hi def link <args> 114 HiLink sambaContinue Operator
118 endif 115 HiLink sambaBoolean Constant
119 HiLink sambaParameter Normal 116 delcommand HiLink
120 HiLink sambaKeyword Type
121 HiLink sambaSection Statement
122 HiLink sambaMacro PreProc
123 HiLink sambaComment Comment
124 HiLink sambaContinue Operator
125 HiLink sambaBoolean Constant
126 delcommand HiLink
127 endif
128 117
129 let b:current_syntax = "samba" 118 let b:current_syntax = "samba"
130 119
131 " vim: ts=8 120 " vim: ts=8