mailcap.vim 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. " Vim syntax file
  2. " Language: Mailcap configuration file
  3. " Maintainer: Doug Kearns <dougkearns@gmail.com>
  4. " Last Change: 2013 Jun 01
  5. if exists("b:current_syntax")
  6. finish
  7. endif
  8. syn match mailcapComment "^#.*"
  9. syn region mailcapString start=+"+ end=+"+ contains=mailcapSpecial oneline
  10. syn match mailcapDelimiter "\\\@<!;"
  11. syn match mailcapSpecial "\\\@<!%[nstF]"
  12. syn match mailcapSpecial "\\\@<!%{[^}]*}"
  13. syn case ignore
  14. syn match mailcapFlag "\(=\s*\)\@<!\<\(needsterminal\|copiousoutput\|x-\w\+\)\>"
  15. syn match mailcapFieldname "\<\(compose\|composetyped\|print\|edit\|test\|x11-bitmap\|nametemplate\|textualnewlines\|description\|x-\w+\)\>\ze\s*="
  16. syn match mailcapTypeField "^\(text\|image\|audio\|video\|application\|message\|multipart\|model\|x-[[:graph:]]\+\)\(/\(\*\|[[:graph:]]\+\)\)\=\ze\s*;"
  17. syn case match
  18. hi def link mailcapComment Comment
  19. hi def link mailcapDelimiter Delimiter
  20. hi def link mailcapFlag Statement
  21. hi def link mailcapFieldname Statement
  22. hi def link mailcapSpecial Identifier
  23. hi def link mailcapTypeField Type
  24. hi def link mailcapString String
  25. let b:current_syntax = "mailcap"
  26. " vim: ts=8