Mercurial > vim
comparison runtime/syntax/tli.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 |
---|---|
2 " Language: TealInfo source files (*.tli) | 2 " Language: TealInfo source files (*.tli) |
3 " Maintainer: Kurt W. Andrews <kandrews@fastrans.net> | 3 " Maintainer: Kurt W. Andrews <kandrews@fastrans.net> |
4 " Last Change: 2001 May 10 | 4 " Last Change: 2001 May 10 |
5 " Version: 1.0 | 5 " Version: 1.0 |
6 | 6 |
7 " For version 5.x: Clear all syntax items | 7 " quit when a syntax file was already loaded |
8 " For version 6.x: Quit when a syntax file was already loaded | 8 if exists("b:current_syntax") |
9 if version < 600 | |
10 syntax clear | |
11 elseif exists("b:current_syntax") | |
12 finish | 9 finish |
13 endif | 10 endif |
14 | 11 |
15 " TealInfo Objects | 12 " TealInfo Objects |
16 | 13 |
42 syn match tliIdentifier "\<\h\w*\>" | 39 syn match tliIdentifier "\<\h\w*\>" |
43 syn match tliComment "#.*" | 40 syn match tliComment "#.*" |
44 syn case match | 41 syn case match |
45 | 42 |
46 " Define the default highlighting. | 43 " Define the default highlighting. |
47 " For version 5.7 and earlier: only when not done already | 44 " Only when an item doesn't have highlighting yet |
48 " For version 5.8 and later: only when an item doesn't have highlighting yet | 45 command -nargs=+ HiLink hi def link <args> |
49 if version >= 508 || !exists("did_tli_syntax_inits") | |
50 if version < 508 | |
51 let did_tli_syntax_inits = 1 | |
52 command -nargs=+ HiLink hi link <args> | |
53 else | |
54 command -nargs=+ HiLink hi def link <args> | |
55 endif | |
56 | 46 |
57 HiLink tliNumber Number | 47 HiLink tliNumber Number |
58 HiLink tliString String | 48 HiLink tliString String |
59 HiLink tliComment Comment | 49 HiLink tliComment Comment |
60 HiLink tliSpecial SpecialChar | 50 HiLink tliSpecial SpecialChar |
61 HiLink tliIdentifier Identifier | 51 HiLink tliIdentifier Identifier |
62 HiLink tliObject Statement | 52 HiLink tliObject Statement |
63 HiLink tliField Type | 53 HiLink tliField Type |
64 HiLink tliStyle PreProc | 54 HiLink tliStyle PreProc |
65 | 55 |
66 delcommand HiLink | 56 delcommand HiLink |
67 endif | |
68 | 57 |
69 let b:current_syntax = "tli" | 58 let b:current_syntax = "tli" |
70 | 59 |
71 " vim: ts=8 | 60 " vim: ts=8 |