Mercurial > vim
annotate runtime/syntax/htmlcheetah.vim @ 9778:4360b2b46125 v7.4.2164
commit https://github.com/vim/vim/commit/66459b7c98c67f8a9d39de8f08e8e8f1fca0e359
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Aug 6 19:01:55 2016 +0200
patch 7.4.2164
Problem: It is not possible to use plugins in an "after" directory to tune
the behavior of a package.
Solution: First load plugins from non-after directories, then packages and
finally plugins in after directories.
Reset 'loadplugins' before executing --cmd arguments.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 06 Aug 2016 19:15:06 +0200 |
parents | 3fc0f57ecb91 |
children | 43efa4f5a8ea |
rev | line source |
---|---|
7 | 1 " Vim syntax file |
2 " Language: HTML with Cheetah tags | |
3 " Maintainer: Max Ischenko <mfi@ukr.net> | |
4 " Last Change: 2003-05-11 | |
5 | |
6 " For version 5.x: Clear all syntax items | |
7 " For version 6.x: Quit when a syntax file was already loaded | |
8 if version < 600 | |
9 syntax clear | |
10 elseif exists("b:current_syntax") | |
11 finish | |
12 endif | |
13 | |
14 if !exists("main_syntax") | |
15 let main_syntax = 'html' | |
16 endif | |
17 | |
18 if version < 600 | |
19 so <sfile>:p:h/cheetah.vim | |
20 so <sfile>:p:h/html.vim | |
21 else | |
22 runtime! syntax/cheetah.vim | |
23 runtime! syntax/html.vim | |
24 unlet b:current_syntax | |
25 endif | |
26 | |
27 syntax cluster htmlPreproc add=cheetahPlaceHolder | |
28 syntax cluster htmlString add=cheetahPlaceHolder | |
29 | |
30 let b:current_syntax = "htmlcheetah" | |
31 | |
32 |