2009-11-19 03:00:43 +01:00
|
|
|
" notmuch show mode syntax file
|
|
|
|
|
2009-11-20 07:15:00 +01:00
|
|
|
syntax cluster nmShowMsgDesc contains=nmShowMsgDescWho,nmShowMsgDescDate,nmShowMsgDescTags
|
|
|
|
syntax match nmShowMsgDescWho /[^)]\+)/ contained
|
|
|
|
syntax match nmShowMsgDescDate / ([^)]\+[0-9]) / contained
|
|
|
|
syntax match nmShowMsgDescTags /([^)]\+)$/ contained
|
2009-11-19 22:20:16 +01:00
|
|
|
|
2009-11-20 07:15:00 +01:00
|
|
|
syntax cluster nmShowMsgHead contains=nmShowMsgHeadKey,nmShowMsgHeadVal
|
|
|
|
syntax match nmShowMsgHeadKey /^[^:]\+: / contained
|
|
|
|
syntax match nmShowMsgHeadVal /^\([^:]\+: \)\@<=.*/ contained
|
2009-11-19 03:00:43 +01:00
|
|
|
|
2009-11-20 07:15:00 +01:00
|
|
|
syntax cluster nmShowMsgBody contains=@nmShowMsgBodyMail,@nmShowMsgBodyGit
|
|
|
|
syntax include @nmShowMsgBodyMail syntax/mail.vim
|
2009-11-23 15:28:40 +01:00
|
|
|
|
|
|
|
" git-diff.vim marks up diffs in emails, see README for details
|
|
|
|
silent! syntax include @nmShowMsgBodyGit syntax/git-diff.vim
|
2009-11-20 07:15:00 +01:00
|
|
|
|
|
|
|
highlight nmShowMsgDescWho term=reverse cterm=reverse gui=reverse
|
|
|
|
highlight link nmShowMsgDescDate Type
|
|
|
|
highlight link nmShowMsgDescTags String
|
|
|
|
|
|
|
|
highlight link nmShowMsgHeadKey Macro
|
|
|
|
"highlight link nmShowMsgHeadVal NONE
|
2009-11-19 22:20:16 +01:00
|
|
|
|
|
|
|
highlight Folded term=reverse ctermfg=LightGrey ctermbg=Black guifg=LightGray guibg=Black
|