Mercurial > vim
comparison runtime/syntax/sd.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 | b7811ab264bf |
children | 46763b01cd9a |
comparison
equal
deleted
inserted
replaced
10047:a62862410ca1 | 10048:43efa4f5a8ea |
---|---|
3 " License: This file can be redistribued and/or modified under the same terms | 3 " License: This file can be redistribued and/or modified under the same terms |
4 " as Vim itself. | 4 " as Vim itself. |
5 " URL: http://netstudent.polito.it/vim_syntax/ | 5 " URL: http://netstudent.polito.it/vim_syntax/ |
6 " Last Change: 2012 Feb 03 by Thilo Six | 6 " Last Change: 2012 Feb 03 by Thilo Six |
7 | 7 |
8 if version < 600 | 8 " quit when a syntax file was already loaded |
9 syntax clear | 9 if exists("b:current_syntax") |
10 elseif exists("b:current_syntax") | |
11 finish | 10 finish |
12 endif | 11 endif |
13 | 12 |
14 let s:cpo_save = &cpo | 13 let s:cpo_save = &cpo |
15 set cpo&vim | 14 set cpo&vim |
49 "Specials | 48 "Specials |
50 syn keyword sdSpecial TRUE FALSE NULL | 49 syn keyword sdSpecial TRUE FALSE NULL |
51 syn keyword sdDelimiter STREAM STREAM_END | 50 syn keyword sdDelimiter STREAM STREAM_END |
52 syn match sdError /^search .\{257,}/ | 51 syn match sdError /^search .\{257,}/ |
53 | 52 |
54 if version >= 508 || !exists("did_config_syntax_inits") | 53 command! -nargs=+ HiLink hi def link <args> |
55 if version < 508 | |
56 let did_config_syntax_inits = 1 | |
57 command! -nargs=+ HiLink hi link <args> | |
58 else | |
59 command! -nargs=+ HiLink hi def link <args> | |
60 endif | |
61 | 54 |
62 HiLink sdIP Number | 55 HiLink sdIP Number |
63 HiLink sdHostname Type | 56 HiLink sdHostname Type |
64 HiLink sdEncoding Identifier | 57 HiLink sdEncoding Identifier |
65 HiLink sdCoding Identifier | 58 HiLink sdCoding Identifier |
66 HiLink sdSource Identifier | 59 HiLink sdSource Identifier |
67 HiLink sdComment Comment | 60 HiLink sdComment Comment |
68 HiLink sdIPError Error | 61 HiLink sdIPError Error |
69 HiLink sdError Error | 62 HiLink sdError Error |
70 HiLink sdStatement Statement | 63 HiLink sdStatement Statement |
71 HiLink sdIPSpecial Special | 64 HiLink sdIPSpecial Special |
72 HiLink sdSpecial Special | 65 HiLink sdSpecial Special |
73 HiLink sdDelimiter Delimiter | 66 HiLink sdDelimiter Delimiter |
74 | 67 |
75 delcommand HiLink | 68 delcommand HiLink |
76 endif | |
77 | 69 |
78 let b:current_syntax = "sd" | 70 let b:current_syntax = "sd" |
79 | 71 |
80 let &cpo = s:cpo_save | 72 let &cpo = s:cpo_save |
81 unlet s:cpo_save | 73 unlet s:cpo_save |