7
|
1 " Vim syntax file
|
|
2 " Language: HTML and M4
|
|
3 " Maintainer: Claudio Fleiner <claudio@fleiner.com>
|
|
4 " URL: http://www.fleiner.com/vim/syntax/htmlm4.vim
|
|
5 " Last Change: 2001 Apr 30
|
|
6
|
|
7 " For version 5.x: Clear all syntax items
|
|
8 " For version 6.x: Quit when a syntax file was already loaded
|
|
9 if version < 600
|
|
10 syntax clear
|
|
11 elseif exists("b:current_syntax")
|
|
12 finish
|
|
13 endif
|
|
14
|
|
15 " we define it here so that included files can test for it
|
|
16 if !exists("main_syntax")
|
|
17 let main_syntax='htmlm4'
|
|
18 endif
|
|
19
|
|
20 if version < 600
|
|
21 so <sfile>:p:h/html.vim
|
|
22 else
|
|
23 runtime! syntax/html.vim
|
|
24 endif
|
|
25 unlet b:current_syntax
|
|
26 syn case match
|
|
27
|
|
28 if version < 600
|
|
29 so <sfile>:p:h/m4.vim
|
|
30 else
|
|
31 runtime! syntax/m4.vim
|
|
32 endif
|
|
33 unlet b:current_syntax
|
|
34 syn cluster htmlPreproc add=@m4Top
|
|
35 syn cluster m4StringContents add=htmlTag,htmlEndTag
|
|
36
|
|
37 let b:current_syntax = "htmlm4"
|
|
38
|
|
39 if main_syntax == 'htmlm4'
|
|
40 unlet main_syntax
|
|
41 endif
|