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
9if version < 600
10  syntax clear
11elseif exists("b:current_syntax")
12  finish
13endif
14
15" we define it here so that included files can test for it
16if !exists("main_syntax")
17  let main_syntax='htmlm4'
18endif
19
20if version < 600
21  so <sfile>:p:h/html.vim
22else
23  runtime! syntax/html.vim
24endif
25unlet b:current_syntax
26syn case match
27
28if version < 600
29  so <sfile>:p:h/m4.vim
30else
31  runtime! syntax/m4.vim
32endif
33unlet b:current_syntax
34syn cluster htmlPreproc add=@m4Top
35syn cluster m4StringContents add=htmlTag,htmlEndTag
36
37let b:current_syntax = "htmlm4"
38
39if main_syntax == 'htmlm4'
40  unlet main_syntax
41endif
42