comparison runtime/syntax/desktop.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 b73f9ed65072
children 46763b01cd9a
comparison
equal deleted inserted replaced
10047:a62862410ca1 10048:43efa4f5a8ea
5 " Maintainer: Mikolaj Machowski ( mikmach AT wp DOT pl ) 5 " Maintainer: Mikolaj Machowski ( mikmach AT wp DOT pl )
6 " Last Change: 2016 Apr 02 6 " Last Change: 2016 Apr 02
7 " (added "Keywords") 7 " (added "Keywords")
8 " Version Info: desktop.vim 0.9.4-1.2 8 " Version Info: desktop.vim 0.9.4-1.2
9 9
10 " For version 5.x: Clear all syntax items 10 " quit when a syntax file was already loaded
11 " For version 6.x: Quit when a syntax file was already loaded 11 if exists("b:current_syntax")
12 if version < 600
13 syntax clear
14 elseif exists("b:current_syntax")
15 finish 12 finish
16 endif 13 endif
17 14
18 " This syntax file can be used to all *nix configuration files similar to dos 15 " This syntax file can be used to all *nix configuration files similar to dos
19 " ini format (eg. .xawtv, .radio, kde rc files) - this is default mode. But 16 " ini format (eg. .xawtv, .radio, kde rc files) - this is default mode. But
77 " Locale for all 74 " Locale for all
78 syn match dtALocale /\[.\{-}\]\s*=\@=/ containedin=ALL 75 syn match dtALocale /\[.\{-}\]\s*=\@=/ containedin=ALL
79 76
80 77
81 " Define the default highlighting. 78 " Define the default highlighting.
82 " For version 5.7 and earlier: only when not done already 79 " Only when an item doesn't have highlighting yet
83 " For version 5.8 and later: only when an item doesn't have highlighting yet 80 command -nargs=+ HiLink hi def link <args>
84 if version >= 508 || !exists("did_desktop_syntax_inits")
85 if version < 508
86 let did_dosini_syntax_inits = 1
87 command -nargs=+ HiLink hi link <args>
88 else
89 command -nargs=+ HiLink hi def link <args>
90 endif
91 81
92 HiLink dtGroup Special 82 HiLink dtGroup Special
93 HiLink dtComment Comment 83 HiLink dtComment Comment
94 HiLink dtDelim String 84 HiLink dtDelim String
95 85
96 HiLink dtLocaleKey Type 86 HiLink dtLocaleKey Type
97 HiLink dtLocaleName Identifier 87 HiLink dtLocaleName Identifier
98 HiLink dtXLocale Identifier 88 HiLink dtXLocale Identifier
99 HiLink dtALocale Identifier 89 HiLink dtALocale Identifier
100 90
101 HiLink dtNumericKey Type 91 HiLink dtNumericKey Type
102 92
103 HiLink dtBooleanKey Type 93 HiLink dtBooleanKey Type
104 HiLink dtBooleanValue Constant 94 HiLink dtBooleanValue Constant
105 95
106 HiLink dtStringKey Type 96 HiLink dtStringKey Type
107 97
108 HiLink dtExecKey Type 98 HiLink dtExecKey Type
109 HiLink dtExecParam Special 99 HiLink dtExecParam Special
110 HiLink dtTypeKey Type 100 HiLink dtTypeKey Type
111 HiLink dtTypeValue Constant 101 HiLink dtTypeValue Constant
112 HiLink dtNotStLabel Type 102 HiLink dtNotStLabel Type
113 HiLink dtXAddKey Type 103 HiLink dtXAddKey Type
114 104
115 delcommand HiLink 105 delcommand HiLink
116 endif
117 106
118 let b:current_syntax = "desktop" 107 let b:current_syntax = "desktop"
119 108
120 " vim:ts=8 109 " vim:ts=8