Mercurial > vim
comparison runtime/syntax/smith.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 |
---|---|
1 " Vim syntax file | 1 " Vim syntax file |
2 " Language: SMITH | 2 " Language: SMITH |
3 " Maintainer: Rafal M. Sulejman <rms@poczta.onet.pl> | 3 " Maintainer: Rafal M. Sulejman <rms@poczta.onet.pl> |
4 " Last Change: 21.07.2000 | 4 " Last Change: 21.07.2000 |
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 syn case ignore | 11 syn case ignore |
15 | 12 |
26 | 23 |
27 | 24 |
28 syn case match | 25 syn case match |
29 | 26 |
30 " Define the default highlighting. | 27 " Define the default highlighting. |
31 " For version 5.7 and earlier: only when not done already | 28 " Only when an item doesn't have highlighting yet |
32 " For version 5.8 and later: only when an item doesn't have highlighting yet | 29 command -nargs=+ HiLink hi def link <args> |
33 if version >= 508 || !exists("did_smith_syntax_inits") | |
34 if version < 508 | |
35 let did_smith_syntax_inits = 1 | |
36 command -nargs=+ HiLink hi link <args> | |
37 else | |
38 command -nargs=+ HiLink hi def link <args> | |
39 endif | |
40 | 30 |
41 HiLink smithRegister Identifier | 31 HiLink smithRegister Identifier |
42 HiLink smithKeyword Keyword | 32 HiLink smithKeyword Keyword |
43 HiLink smithComment Comment | 33 HiLink smithComment Comment |
44 HiLink smithString String | 34 HiLink smithString String |
45 HiLink smithNumber Number | 35 HiLink smithNumber Number |
46 | 36 |
47 delcommand HiLink | 37 delcommand HiLink |
48 endif | |
49 | 38 |
50 let b:current_syntax = "smith" | 39 let b:current_syntax = "smith" |
51 | 40 |
52 " vim: ts=2 | 41 " vim: ts=2 |