Mercurial > vim
comparison runtime/syntax/cheetah.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 |
---|---|
6 " Missing features: | 6 " Missing features: |
7 " match invalid syntax, like bad variable ref. or unmatched closing tag | 7 " match invalid syntax, like bad variable ref. or unmatched closing tag |
8 " PSP-style tags: <% .. %> (obsoleted feature) | 8 " PSP-style tags: <% .. %> (obsoleted feature) |
9 " doc-strings and header comments (rarely used feature) | 9 " doc-strings and header comments (rarely used feature) |
10 | 10 |
11 " For version 5.x: Clear all syntax items | 11 " quit when a syntax file was already loaded |
12 " For version 6.x: Quit when a syntax file was already loaded | 12 if exists("b:current_syntax") |
13 if version < 600 | |
14 syntax clear | |
15 elseif exists("b:current_syntax") | |
16 finish | 13 finish |
17 endif | 14 endif |
18 | 15 |
19 syntax case match | 16 syntax case match |
20 | 17 |
34 syn match cheetahContinuation "\\$" | 31 syn match cheetahContinuation "\\$" |
35 syn match cheetahComment "##.*$" display | 32 syn match cheetahComment "##.*$" display |
36 syn region cheetahMultiLineComment start="#\*" end="\*#" | 33 syn region cheetahMultiLineComment start="#\*" end="\*#" |
37 | 34 |
38 " Define the default highlighting. | 35 " Define the default highlighting. |
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_cheetah_syn_inits") | |
42 if version < 508 | |
43 let did_cheetah_syn_inits = 1 | |
44 command -nargs=+ HiLink hi link <args> | |
45 else | |
46 command -nargs=+ HiLink hi def link <args> | |
47 endif | |
48 | 38 |
49 HiLink cheetahPlaceHolder Identifier | 39 HiLink cheetahPlaceHolder Identifier |
50 HiLink cheetahDirective PreCondit | 40 HiLink cheetahDirective PreCondit |
51 HiLink cheetahKeyword Define | 41 HiLink cheetahKeyword Define |
52 HiLink cheetahContinuation Special | 42 HiLink cheetahContinuation Special |
53 HiLink cheetahComment Comment | 43 HiLink cheetahComment Comment |
54 HiLink cheetahMultiLineComment Comment | 44 HiLink cheetahMultiLineComment Comment |
55 | 45 |
56 delcommand HiLink | 46 delcommand HiLink |
57 endif | |
58 | 47 |
59 let b:current_syntax = "cheetah" | 48 let b:current_syntax = "cheetah" |
60 | 49 |