1
0
Fork 0
mirror of https://github.com/vim/vim synced 2025-03-21 17:25:11 +01:00
vim/runtime/syntax/mailcap.vim

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
1.1 KiB
VimL
Raw Normal View History

2004-06-13 20:20:40 +00:00
" Vim syntax file
" Language: Mailcap configuration file
2013-08-03 18:35:36 +02:00
" Maintainer: Doug Kearns <dougkearns@gmail.com>
" Last Change: 2013 Jun 01
if exists("b:current_syntax")
2004-06-13 20:20:40 +00:00
finish
endif
2013-08-03 18:35:36 +02:00
syn match mailcapComment "^#.*"
2004-06-13 20:20:40 +00:00
2013-08-03 18:35:36 +02:00
syn region mailcapString start=+"+ end=+"+ contains=mailcapSpecial oneline
2004-06-13 20:20:40 +00:00
2013-08-03 18:35:36 +02:00
syn match mailcapDelimiter "\\\@<!;"
2004-06-13 20:20:40 +00:00
2013-08-03 18:35:36 +02:00
syn match mailcapSpecial "\\\@<!%[nstF]"
syn match mailcapSpecial "\\\@<!%{[^}]*}"
2004-06-13 20:20:40 +00:00
syn case ignore
2013-08-03 18:35:36 +02:00
syn match mailcapFlag "\(=\s*\)\@<!\<\(needsterminal\|copiousoutput\|x-\w\+\)\>"
syn match mailcapFieldname "\<\(compose\|composetyped\|print\|edit\|test\|x11-bitmap\|nametemplate\|textualnewlines\|description\|x-\w+\)\>\ze\s*="
syn match mailcapTypeField "^\(text\|image\|audio\|video\|application\|message\|multipart\|model\|x-[[:graph:]]\+\)\(/\(\*\|[[:graph:]]\+\)\)\=\ze\s*;"
2004-06-13 20:20:40 +00:00
syn case match
2013-08-03 18:35:36 +02:00
hi def link mailcapComment Comment
hi def link mailcapDelimiter Delimiter
hi def link mailcapFlag Statement
hi def link mailcapFieldname Statement
hi def link mailcapSpecial Identifier
hi def link mailcapTypeField Type
hi def link mailcapString String
2004-06-13 20:20:40 +00:00
let b:current_syntax = "mailcap"
2013-08-03 18:35:36 +02:00
" vim: ts=8