]> git.notmuchmail.org Git - notmuch/blobdiff - vim/syntax/notmuch-show.vim
added syntax files for search and show screens
[notmuch] / vim / syntax / notmuch-show.vim
diff --git a/vim/syntax/notmuch-show.vim b/vim/syntax/notmuch-show.vim
new file mode 100644 (file)
index 0000000..06dd2ea
--- /dev/null
@@ -0,0 +1,13 @@
+" notmuch show mode syntax file
+
+syntax region nmShowMessage    start="\fmessage{"    end="\fmessage}"    contains=nmShowHeader,nmShowBody,nmShowAttachment,nmShowPart
+syntax region nmShowHeader     start="\fheader{"     end="\fheader}"     contained
+syntax region nmShowBody       start="\fbody{"       end="\fbody}"       contained contains=nmShowAttachment,nmShowPart
+syntax region nmShowAttachment start="\fattachment{" end="\fattachment}" contained
+syntax region nmShowPart       start="\fpart{"       end="\fpart}"       contained
+
+highlight link nmShowMessage    Error
+highlight link nmShowHeader     Type
+highlight link nmShowBody       Statement
+highlight link nmShowAttachment Statement
+highlight link nmShowPart       String