comparison runtime/syntax/htmlcheetah.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
comparison
equal deleted inserted replaced
10047:a62862410ca1 10048:43efa4f5a8ea
1 " Vim syntax file 1 " Vim syntax file
2 " Language: HTML with Cheetah tags 2 " Language: HTML with Cheetah tags
3 " Maintainer: Max Ischenko <mfi@ukr.net> 3 " Maintainer: Max Ischenko <mfi@ukr.net>
4 " Last Change: 2003-05-11 4 " Last Change: 2003-05-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 if !exists("main_syntax") 11 if !exists("main_syntax")
15 let main_syntax = 'html' 12 let main_syntax = 'html'
16 endif 13 endif
17 14
18 if version < 600 15 runtime! syntax/cheetah.vim
19 so <sfile>:p:h/cheetah.vim 16 runtime! syntax/html.vim
20 so <sfile>:p:h/html.vim 17 unlet b:current_syntax
21 else
22 runtime! syntax/cheetah.vim
23 runtime! syntax/html.vim
24 unlet b:current_syntax
25 endif
26 18
27 syntax cluster htmlPreproc add=cheetahPlaceHolder 19 syntax cluster htmlPreproc add=cheetahPlaceHolder
28 syntax cluster htmlString add=cheetahPlaceHolder 20 syntax cluster htmlString add=cheetahPlaceHolder
29 21
30 let b:current_syntax = "htmlcheetah" 22 let b:current_syntax = "htmlcheetah"