Mercurial > vim
comparison runtime/syntax/cfg.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 | 536aa8b0c934 |
children | 46763b01cd9a |
comparison
equal
deleted
inserted
replaced
10047:a62862410ca1 | 10048:43efa4f5a8ea |
---|---|
1 " Vim syntax file | 1 " Vim syntax file |
2 " Language: Good old CFG files | 2 " Language: Good old CFG files |
3 " Maintainer: Igor N. Prischepoff (igor@tyumbit.ru, pri_igor@mail.ru) | 3 " Maintainer: Igor N. Prischepoff (igor@tyumbit.ru, pri_igor@mail.ru) |
4 " Last change: 2012 Aug 11 | 4 " Last change: 2012 Aug 11 |
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 " case off | 11 " case off |
15 syn case ignore | 12 syn case ignore |
34 syn match CfgComment "#.*" | 31 syn match CfgComment "#.*" |
35 syn match CfgComment ";.*" | 32 syn match CfgComment ";.*" |
36 syn match CfgComment "\/\/.*" | 33 syn match CfgComment "\/\/.*" |
37 | 34 |
38 " Define the default hightlighting. | 35 " Define the default hightlighting. |
39 " For version 5.7 and earlier: only when not done already | 36 " Only when an item doesn't have highlighting yet |
40 " For version 5.8 and later: only when an item doesn't have highlighting yet | 37 command -nargs=+ HiLink hi def link <args> |
41 if version >= 508 || !exists("did_cfg_syn_inits") | 38 HiLink CfgOnOff Label |
42 if version < 508 | 39 HiLink CfgComment Comment |
43 let did_cfg_syn_inits = 1 | 40 HiLink CfgSection Type |
44 command -nargs=+ HiLink hi link <args> | 41 HiLink CfgString String |
45 else | 42 HiLink CfgParams Keyword |
46 command -nargs=+ HiLink hi def link <args> | 43 HiLink CfgValues Constant |
47 endif | 44 HiLink CfgDirectory Directory |
48 HiLink CfgOnOff Label | 45 HiLink UncPath Directory |
49 HiLink CfgComment Comment | |
50 HiLink CfgSection Type | |
51 HiLink CfgString String | |
52 HiLink CfgParams Keyword | |
53 HiLink CfgValues Constant | |
54 HiLink CfgDirectory Directory | |
55 HiLink UncPath Directory | |
56 | 46 |
57 delcommand HiLink | 47 delcommand HiLink |
58 endif | 48 |
59 let b:current_syntax = "cfg" | 49 let b:current_syntax = "cfg" |
60 " vim:ts=8 | 50 " vim:ts=8 |