htmlm4.vim 874 B

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