Mercurial > vim
comparison runtime/syntax/mush.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 | 8cd729851562 |
children | 46763b01cd9a |
comparison
equal
deleted
inserted
replaced
10047:a62862410ca1 | 10048:43efa4f5a8ea |
---|---|
1 " MUSHcode syntax file | 1 " MUSHcode syntax file |
2 " Maintainer: Rick Bird <nveid@nveid.com> | 2 " Maintainer: Rick Bird <nveid@nveid.com> |
3 " Based on vim Syntax file by: Bek Oberin <gossamer@tertius.net.au> | 3 " Based on vim Syntax file by: Bek Oberin <gossamer@tertius.net.au> |
4 " Last Updated: Fri Nov 04 20:28:15 2005 | 4 " Last Updated: Fri Nov 04 20:28:15 2005 |
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 | 11 |
15 " regular mush functions | 12 " regular mush functions |
183 syntax keyword mushAttribute semaphore sex startup succ tfail tport ufail | 180 syntax keyword mushAttribute semaphore sex startup succ tfail tport ufail |
184 syntax keyword mushAttribute use va vb vc vd ve vf vg vh vi vj vk vl vm vn | 181 syntax keyword mushAttribute use va vb vc vd ve vf vg vh vi vj vk vl vm vn |
185 syntax keyword mushAttribute vo vp vq vr vs vt vu vv vw vx vy vz | 182 syntax keyword mushAttribute vo vp vq vr vs vt vu vv vw vx vy vz |
186 | 183 |
187 | 184 |
188 if version >= 508 || !exists("did_mush_syntax_inits") | 185 command -nargs=+ HiLink hi def link <args> |
189 if version < 508 | 186 |
190 let did_mush_syntax_inits = 1 | 187 " The default methods for highlighting. Can be overridden later |
191 command -nargs=+ HiLink hi link <args> | 188 HiLink mushAttribute Constant |
192 else | 189 HiLink mushCommand Function |
193 command -nargs=+ HiLink hi def link <args> | 190 HiLink mushNumber Number |
194 endif | 191 HiLink mushSetting PreProc |
195 | 192 HiLink mushFunction Statement |
196 " The default methods for highlighting. Can be overridden later | 193 HiLink mushVariable Identifier |
197 HiLink mushAttribute Constant | 194 HiLink mushSpecial Special |
198 HiLink mushCommand Function | 195 HiLink mushTodo Todo |
199 HiLink mushNumber Number | 196 HiLink mushFlag Special |
200 HiLink mushSetting PreProc | 197 HiLink mushIdentifier Identifier |
201 HiLink mushFunction Statement | 198 HiLink mushDefine Macro |
202 HiLink mushVariable Identifier | 199 HiLink mushPreProc PreProc |
203 HiLink mushSpecial Special | 200 HiLink mushPreProcGroup PreProc |
204 HiLink mushTodo Todo | 201 HiLink mushPreCondit PreCondit |
205 HiLink mushFlag Special | 202 HiLink mushIncluded cString |
206 HiLink mushIdentifier Identifier | 203 HiLink mushInclude Include |
207 HiLink mushDefine Macro | |
208 HiLink mushPreProc PreProc | |
209 HiLink mushPreProcGroup PreProc | |
210 HiLink mushPreCondit PreCondit | |
211 HiLink mushIncluded cString | |
212 HiLink mushInclude Include | |
213 | 204 |
214 | 205 |
215 | 206 |
216 " Comments | 207 " Comments |
217 HiLink mushCommentStart mushComment | 208 HiLink mushCommentStart mushComment |
218 HiLink mushComment Comment | 209 HiLink mushComment Comment |
219 HiLink mushCommentString mushString | 210 HiLink mushCommentString mushString |
220 | 211 |
221 | 212 |
222 delcommand HiLink | 213 delcommand HiLink |
223 endif | |
224 | 214 |
225 let b:current_syntax = "mush" | 215 let b:current_syntax = "mush" |
226 | 216 |
227 " mush: ts=17 | 217 " mush: ts=17 |