X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=vim%2Fsyntax%2Fnotmuch-show.vim;fp=vim%2Fsyntax%2Fnotmuch-show.vim;h=06dd2ea2a262d1e45e535184242b45b13c2d08d7;hp=0000000000000000000000000000000000000000;hb=3493ea0ed5bd20b961aafa01eeddaf8cbc49b52f;hpb=5e7df3c17e0d07d5252820beb5ef1e0bfea86498 diff --git a/vim/syntax/notmuch-show.vim b/vim/syntax/notmuch-show.vim new file mode 100644 index 00000000..06dd2ea2 --- /dev/null +++ b/vim/syntax/notmuch-show.vim @@ -0,0 +1,13 @@ +" notmuch show mode syntax file + +syntax region nmShowMessage start=" message{" end=" message}" contains=nmShowHeader,nmShowBody,nmShowAttachment,nmShowPart +syntax region nmShowHeader start=" header{" end=" header}" contained +syntax region nmShowBody start=" body{" end=" body}" contained contains=nmShowAttachment,nmShowPart +syntax region nmShowAttachment start=" attachment{" end=" attachment}" contained +syntax region nmShowPart start=" part{" end=" part}" contained + +highlight link nmShowMessage Error +highlight link nmShowHeader Type +highlight link nmShowBody Statement +highlight link nmShowAttachment Statement +highlight link nmShowPart String