comparison runtime/syntax/htmlm4.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
2 " Language: HTML and M4 2 " Language: HTML and M4
3 " Maintainer: Claudio Fleiner <claudio@fleiner.com> 3 " Maintainer: Claudio Fleiner <claudio@fleiner.com>
4 " URL: http://www.fleiner.com/vim/syntax/htmlm4.vim 4 " URL: http://www.fleiner.com/vim/syntax/htmlm4.vim
5 " Last Change: 2001 Apr 30 5 " Last Change: 2001 Apr 30
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 " we define it here so that included files can test for it 12 " we define it here so that included files can test for it
16 if !exists("main_syntax") 13 if !exists("main_syntax")
17 let main_syntax='htmlm4' 14 let main_syntax='htmlm4'
18 endif 15 endif
19 16
20 if version < 600 17 runtime! syntax/html.vim
21 so <sfile>:p:h/html.vim
22 else
23 runtime! syntax/html.vim
24 endif
25 unlet b:current_syntax 18 unlet b:current_syntax
26 syn case match 19 syn case match
27 20
28 if version < 600 21 runtime! syntax/m4.vim
29 so <sfile>:p:h/m4.vim 22
30 else
31 runtime! syntax/m4.vim
32 endif
33 unlet b:current_syntax 23 unlet b:current_syntax
34 syn cluster htmlPreproc add=@m4Top 24 syn cluster htmlPreproc add=@m4Top
35 syn cluster m4StringContents add=htmlTag,htmlEndTag 25 syn cluster m4StringContents add=htmlTag,htmlEndTag
36 26
37 let b:current_syntax = "htmlm4" 27 let b:current_syntax = "htmlm4"