summaryrefslogtreecommitdiffstats
path: root/syntax/gitsendemail.vim
diff options
context:
space:
mode:
Diffstat (limited to 'syntax/gitsendemail.vim')
-rw-r--r--syntax/gitsendemail.vim6
1 files changed, 5 insertions, 1 deletions
diff --git a/syntax/gitsendemail.vim b/syntax/gitsendemail.vim
index 8b938116..3d7f1065 100644
--- a/syntax/gitsendemail.vim
+++ b/syntax/gitsendemail.vim
@@ -1,7 +1,7 @@
" Vim syntax file
" Language: git send-email message
" Maintainer: Tim Pope
-" Filenames: *.msg.[0-9]* (first line is "From ... # This line is ignored.")
+" Filenames: .gitsendemail.*
" Last Change: 2010 May 21
if exists("b:current_syntax")
@@ -9,6 +9,10 @@ if exists("b:current_syntax")
endif
runtime! syntax/mail.vim
+unlet! b:current_syntax
+syn include @gitsendemailDiff syntax/diff.vim
+syn region gitsendemailDiff start=/\%(^diff --\%(git\|cc\|combined\) \)\@=/ end=/^-- %/ fold contains=@gitsendemailDiff
+
syn case match
syn match gitsendemailComment "\%^From.*#.*"