Mercurial > vim
comparison runtime/syntax/def.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 | 7bc41231fbc7 |
children | 46763b01cd9a |
comparison
equal
deleted
inserted
replaced
10047:a62862410ca1 | 10048:43efa4f5a8ea |
---|---|
3 " Orig Author: Rob Brady <robb@datatone.com> | 3 " Orig Author: Rob Brady <robb@datatone.com> |
4 " Maintainer: Wu Yongwei <wuyongwei@gmail.com> | 4 " Maintainer: Wu Yongwei <wuyongwei@gmail.com> |
5 " Last Change: $Date: 2007/10/02 13:51:24 $ | 5 " Last Change: $Date: 2007/10/02 13:51:24 $ |
6 " $Revision: 1.2 $ | 6 " $Revision: 1.2 $ |
7 | 7 |
8 " For version 5.x: Clear all syntax items | 8 " quit when a syntax file was already loaded |
9 " For version 6.x: Quit when a syntax file was already loaded | 9 if exists("b:current_syntax") |
10 if version < 600 | |
11 syntax clear | |
12 elseif exists("b:current_syntax") | |
13 finish | 10 finish |
14 endif | 11 endif |
15 | 12 |
16 syn case ignore | 13 syn case ignore |
17 | 14 |
30 syn match defNumber "\d+" | 27 syn match defNumber "\d+" |
31 syn match defNumber "0x\x\+" | 28 syn match defNumber "0x\x\+" |
32 | 29 |
33 | 30 |
34 " Define the default highlighting. | 31 " Define the default highlighting. |
35 " For version 5.7 and earlier: only when not done already | 32 " Only when an item doesn't have highlighting yet |
36 " For version 5.8 and later: only when an item doesn't have highlighting yet | 33 command -nargs=+ HiLink hi def link <args> |
37 if version >= 508 || !exists("did_def_syntax_inits") | |
38 if version < 508 | |
39 let did_def_syntax_inits = 1 | |
40 command -nargs=+ HiLink hi link <args> | |
41 else | |
42 command -nargs=+ HiLink hi def link <args> | |
43 endif | |
44 | 34 |
45 HiLink defComment Comment | 35 HiLink defComment Comment |
46 HiLink defKeyword Keyword | 36 HiLink defKeyword Keyword |
47 HiLink defStorage StorageClass | 37 HiLink defStorage StorageClass |
48 HiLink defString String | 38 HiLink defString String |
49 HiLink defNumber Number | 39 HiLink defNumber Number |
50 HiLink defOrdinal Operator | 40 HiLink defOrdinal Operator |
51 | 41 |
52 delcommand HiLink | 42 delcommand HiLink |
53 endif | |
54 | 43 |
55 let b:current_syntax = "def" | 44 let b:current_syntax = "def" |
56 | 45 |
57 " vim: ts=8 | 46 " vim: ts=8 |