Mercurial > vim
comparison runtime/syntax/bc.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 | 9cb3a75a20b9 |
children | 46763b01cd9a |
comparison
equal
deleted
inserted
replaced
10047:a62862410ca1 | 10048:43efa4f5a8ea |
---|---|
3 " Maintainer: Vladimir Scholtz <vlado@gjh.sk> | 3 " Maintainer: Vladimir Scholtz <vlado@gjh.sk> |
4 " Last change: 2012 Jun 01 | 4 " Last change: 2012 Jun 01 |
5 " (Dominique Pelle added @Spell) | 5 " (Dominique Pelle added @Spell) |
6 " Available on: www.gjh.sk/~vlado/bc.vim | 6 " Available on: www.gjh.sk/~vlado/bc.vim |
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 |
51 | 48 |
52 | 49 |
53 syn case match | 50 syn case match |
54 | 51 |
55 " Define the default highlighting. | 52 " Define the default highlighting. |
56 " For version 5.7 and earlier: only when not done already | 53 " Only when an item doesn't have highlighting yet |
57 " For version 5.8 and later: only when an item doesn't have highlighting yet | 54 command -nargs=+ HiLink hi def link <args> |
58 if version >= 508 || !exists("did_bc_syntax_inits") | |
59 if version < 508 | |
60 let did_bc_syntax_inits = 1 | |
61 command -nargs=+ HiLink hi link <args> | |
62 else | |
63 command -nargs=+ HiLink hi def link <args> | |
64 endif | |
65 | 55 |
66 HiLink bcKeyword Statement | 56 HiLink bcKeyword Statement |
67 HiLink bcType Type | 57 HiLink bcType Type |
68 HiLink bcConstant Constant | 58 HiLink bcConstant Constant |
69 HiLink bcNumber Number | 59 HiLink bcNumber Number |
70 HiLink bcComment Comment | 60 HiLink bcComment Comment |
71 HiLink bcString String | 61 HiLink bcString String |
72 HiLink bcSpecialChar SpecialChar | 62 HiLink bcSpecialChar SpecialChar |
73 HiLink bcParenError Error | 63 HiLink bcParenError Error |
74 | 64 |
75 delcommand HiLink | 65 delcommand HiLink |
76 endif | |
77 | 66 |
78 let b:current_syntax = "bc" | 67 let b:current_syntax = "bc" |
79 " vim: ts=8 | 68 " vim: ts=8 |