7
|
1 " Vim syntax file
|
|
2 " Language: Mailcap configuration file
|
5277
|
3 " Maintainer: Doug Kearns <dougkearns@gmail.com>
|
|
4 " Last Change: 2013 Jun 01
|
7
|
5
|
5277
|
6 if exists("b:current_syntax")
|
7
|
7 finish
|
|
8 endif
|
|
9
|
5277
|
10 syn match mailcapComment "^#.*"
|
7
|
11
|
5277
|
12 syn region mailcapString start=+"+ end=+"+ contains=mailcapSpecial oneline
|
7
|
13
|
5277
|
14 syn match mailcapDelimiter "\\\@<!;"
|
7
|
15
|
5277
|
16 syn match mailcapSpecial "\\\@<!%[nstF]"
|
|
17 syn match mailcapSpecial "\\\@<!%{[^}]*}"
|
7
|
18
|
|
19 syn case ignore
|
5277
|
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*;"
|
7
|
23 syn case match
|
|
24
|
5277
|
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
|
7
|
32
|
|
33 let b:current_syntax = "mailcap"
|
|
34
|
5277
|
35 " vim: ts=8
|