comparison runtime/syntax/radiance.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
16 " We take a minimalist approach here, highlighting just the 16 " We take a minimalist approach here, highlighting just the
17 " essential properties of each object, its type and ID, as well as 17 " essential properties of each object, its type and ID, as well as
18 " comments, external command names and the null-modifier "void". 18 " comments, external command names and the null-modifier "void".
19 19
20 20
21 " For version 5.x: Clear all syntax items 21 " quit when a syntax file was already loaded
22 " For version 6.x: Quit when a syntax file was already loaded 22 if exists("b:current_syntax")
23 if version < 600
24 syntax clear
25 elseif exists("b:current_syntax")
26 finish 23 finish
27 endif 24 endif
28 25
29 " all printing characters except '#' and '!' are valid in names. 26 " all printing characters except '#' and '!' are valid in names.
30 if version >= 600 27 setlocal iskeyword=\",$-~
31 setlocal iskeyword=\",$-~
32 else
33 set iskeyword=\",$-~
34 endif
35 28
36 " The null-modifier 29 " The null-modifier
37 syn keyword radianceKeyword void 30 syn keyword radianceKeyword void
38 31
39 " The different kinds of scene description object types 32 " The different kinds of scene description object types
128 " The usual suspects 121 " The usual suspects
129 syn keyword radianceTodo contained TODO XXX 122 syn keyword radianceTodo contained TODO XXX
130 syn match radianceComment "#.*$" contains=radianceTodo 123 syn match radianceComment "#.*$" contains=radianceTodo
131 124
132 " Define the default highlighting. 125 " Define the default highlighting.
133 " For version 5.7 and earlier: only when not done already 126 " Only when an item doesn't have highlighting yet
134 " For version 5.8 and later: only when an item doesn't have highlighting yet 127 command -nargs=+ HiLink hi def link <args>
135 if version >= 508 || !exists("did_radiance_syn_inits") 128 HiLink radianceKeyword Keyword
136 if version < 508 129 HiLink radianceExtraType Type
137 let did_radiance_syn_inits = 1 130 HiLink radianceSurfType Type
138 command -nargs=+ HiLink hi link <args> 131 HiLink radianceLightType Type
139 else 132 HiLink radianceMatType Type
140 command -nargs=+ HiLink hi def link <args> 133 HiLink radiancePatType Type
141 endif 134 HiLink radianceTexType Type
142 HiLink radianceKeyword Keyword 135 HiLink radianceMixType Type
143 HiLink radianceExtraType Type 136 HiLink radianceComment Comment
144 HiLink radianceSurfType Type 137 HiLink radianceCommand Function
145 HiLink radianceLightType Type 138 HiLink radianceID String
146 HiLink radianceMatType Type 139 HiLink radianceTodo Todo
147 HiLink radiancePatType Type 140 delcommand HiLink
148 HiLink radianceTexType Type
149 HiLink radianceMixType Type
150 HiLink radianceComment Comment
151 HiLink radianceCommand Function
152 HiLink radianceID String
153 HiLink radianceTodo Todo
154 delcommand HiLink
155 endif
156 141
157 let b:current_syntax = "radiance" 142 let b:current_syntax = "radiance"
158 143
159 " vim: ts=8 sw=2 144 " vim: ts=8 sw=2