Mercurial > vim
comparison runtime/syntax/cynpp.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 |
---|---|
17 | 17 |
18 | 18 |
19 | 19 |
20 | 20 |
21 | 21 |
22 " Remove any old syntax stuff hanging around | 22 " quit when a syntax file was already loaded |
23 " For version 5.x: Clear all syntax items | 23 if exists("b:current_syntax") |
24 " For version 6.x: Quit when a syntax file was already loaded | |
25 if version < 600 | |
26 syntax clear | |
27 elseif exists("b:current_syntax") | |
28 finish | 24 finish |
29 endif | 25 endif |
30 | 26 |
31 " Read the Cynlib syntax to start with - this includes the C++ syntax | 27 " Read the Cynlib syntax to start with - this includes the C++ syntax |
32 if version < 600 | 28 runtime! syntax/cynlib.vim |
33 source <sfile>:p:h/cynlib.vim | |
34 else | |
35 runtime! syntax/cynlib.vim | |
36 endif | |
37 unlet b:current_syntax | 29 unlet b:current_syntax |
38 | 30 |
39 | 31 |
40 | 32 |
41 " Cyn++ extensions | 33 " Cyn++ extensions |
47 syn keyword cynppMacro At | 39 syn keyword cynppMacro At |
48 syn keyword cynppMacro Thread EndThread | 40 syn keyword cynppMacro Thread EndThread |
49 syn keyword cynppMacro Instantiate | 41 syn keyword cynppMacro Instantiate |
50 | 42 |
51 " Define the default highlighting. | 43 " Define the default highlighting. |
52 " For version 5.7 and earlier: only when not done already | 44 " Only when an item doesn't have highlighting yet |
53 " For version 5.8 and later: only when an item doesn't have highlighting yet | 45 command -nargs=+ HiLink hi def link <args> |
54 if version >= 508 || !exists("did_cynpp_syntax_inits") | |
55 if version < 508 | |
56 let did_cynpp_syntax_inits = 1 | |
57 command -nargs=+ HiLink hi link <args> | |
58 else | |
59 command -nargs=+ HiLink hi def link <args> | |
60 endif | |
61 | 46 |
62 HiLink cLabel Label | 47 HiLink cLabel Label |
63 HiLink cynppMacro Statement | 48 HiLink cynppMacro Statement |
64 | 49 |
65 delcommand HiLink | 50 delcommand HiLink |
66 endif | |
67 | 51 |
68 let b:current_syntax = "cynpp" | 52 let b:current_syntax = "cynpp" |