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