added syntax files for search and show screens
[notmuch] / vim / syntax / notmuch-show.vim
1 " notmuch show mode syntax file
2
3 syntax region nmShowMessage    start="\fmessage{"    end="\fmessage}"    contains=nmShowHeader,nmShowBody,nmShowAttachment,nmShowPart
4 syntax region nmShowHeader     start="\fheader{"     end="\fheader}"     contained
5 syntax region nmShowBody       start="\fbody{"       end="\fbody}"       contained contains=nmShowAttachment,nmShowPart
6 syntax region nmShowAttachment start="\fattachment{" end="\fattachment}" contained
7 syntax region nmShowPart       start="\fpart{"       end="\fpart}"       contained
8
9 highlight link nmShowMessage    Error
10 highlight link nmShowHeader     Type
11 highlight link nmShowBody       Statement
12 highlight link nmShowAttachment Statement
13 highlight link nmShowPart       String