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