aboutsummaryrefslogtreecommitdiff
path: root/vim/syntax/gitsendemail.vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim/syntax/gitsendemail.vim')
-rw-r--r--vim/syntax/gitsendemail.vim18
1 files changed, 18 insertions, 0 deletions
diff --git a/vim/syntax/gitsendemail.vim b/vim/syntax/gitsendemail.vim
new file mode 100644
index 0000000..bb9ae9c
--- /dev/null
+++ b/vim/syntax/gitsendemail.vim
@@ -0,0 +1,18 @@
+" Vim syntax file
+" Language: git send-email message
+" Maintainer: Tim Pope
+" Filenames: *.msg.[0-9]* (first line is "From ... # This line is ignored.")
+
+if exists("b:current_syntax")
+ finish
+endif
+
+runtime! syntax/mail.vim
+syn case match
+
+syn match gitsendemailComment "\%^From.*#.*"
+syn match gitsendemailComment "^GIT:.*"
+
+hi def link gitsendemailComment Comment
+
+let b:current_syntax = "gitsendemail"