aboutsummaryrefslogtreecommitdiffhomepage
path: root/vim/syntax/notmuch-show.vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim/syntax/notmuch-show.vim')
-rw-r--r--vim/syntax/notmuch-show.vim13
1 files changed, 13 insertions, 0 deletions
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