]> git.notmuchmail.org Git - notmuch/blob - vim/syntax/notmuch-show.vim
first attempt to fold the message nicely
[notmuch] / vim / syntax / notmuch-show.vim
1 " notmuch show mode syntax file
2
3 syntax region nmShowMessage    start='\fmessage{'    end='\fmessage}'    contains=nmBlockStart,nmShowHeader,nmShowBody,nmShowAttachment,nmShowPart,nmBlockEnd
4 syntax region nmShowHeader     start='\fheader{'     end='\fheader}'     contained contains=nmBlockStart,nmBlockEnd
5 syntax region nmShowBody       start='\fbody{'       end='\fbody}'       contained contains=nmBlockStart,nmShowAttachment,nmShowPart,nmBlockEnd
6 syntax region nmShowAttachment start='\fattachment{' end='\fattachment}' contained contains=nmBlockStart,nmBlockEnd
7 syntax region nmShowPart       start='\fpart{'       end='\fpart}'       contained contains=nmBlockStart,nmBlockEnd
8
9 syntax region nmBlockStart     start='^\f[a-z]\+{'    end='$'            oneline
10 syntax region nmBlockEnd       start='^\f[a-z]\+}'    end='$'            oneline
11
12 highlight link nmShowMessage    Error
13 highlight link nmShowHeader     Type
14 highlight link nmShowBody       Statement
15 highlight link nmShowAttachment Statement
16 highlight link nmShowPart       String
17 highlight link nmBlockStart     Ignore
18 highlight link nmBlockEnd       Ignore
19
20 highlight Folded term=reverse ctermfg=LightGrey ctermbg=Black guifg=LightGray guibg=Black