comparison runtime/syntax/blank.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 91e53bcb7946
children 46763b01cd9a
comparison
equal deleted inserted replaced
10047:a62862410ca1 10048:43efa4f5a8ea
1 " Vim syntax file 1 " Vim syntax file
2 " Language: Blank 1.4.1 2 " Language: Blank 1.4.1
3 " Maintainer: Rafal M. Sulejman <unefunge@friko2.onet.pl> 3 " Maintainer: Rafal M. Sulejman <unefunge@friko2.onet.pl>
4 " Last change: 2011 Dec 28 by Thilo Six 4 " Last change: 2011 Dec 28 by Thilo Six
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 let s:cpo_save = &cpo 11 let s:cpo_save = &cpo
15 set cpo&vim 12 set cpo&vim
26 syn match blankNumber "\[[0-9]\+\]" 23 syn match blankNumber "\[[0-9]\+\]"
27 24
28 syn case match 25 syn case match
29 26
30 " Define the default highlighting. 27 " Define the default highlighting.
31 " For version 5.7 and earlier: only when not done already 28 " Only when an item doesn't have highlighting yet
32 " For version 5.8 and later: only when an item doesn't have highlighting yet 29 command -nargs=+ HiLink hi def link <args>
33 if version >= 508 || !exists("did_blank_syntax_inits")
34 if version < 508
35 let did_blank_syntax_inits = 1
36 command -nargs=+ HiLink hi link <args>
37 else
38 command -nargs=+ HiLink hi def link <args>
39 endif
40 30
41 HiLink blankInstruction Statement 31 HiLink blankInstruction Statement
42 HiLink blankNumber Number 32 HiLink blankNumber Number
43 HiLink blankString String 33 HiLink blankString String
44 34
45 delcommand HiLink 35 delcommand HiLink
46 endif
47 36
48 let b:current_syntax = "blank" 37 let b:current_syntax = "blank"
49 38
50 let &cpo = s:cpo_save 39 let &cpo = s:cpo_save
51 unlet s:cpo_save 40 unlet s:cpo_save