gitsendemail.vim 580 B

123456789101112131415161718192021222324
  1. " Vim syntax file
  2. " Language: git send-email message
  3. " Maintainer: Tim Pope
  4. " Filenames: .gitsendemail.*
  5. " Last Change: 2016 Aug 29
  6. if exists("b:current_syntax")
  7. finish
  8. endif
  9. runtime! syntax/mail.vim
  10. unlet! b:current_syntax
  11. syn include @gitsendemailDiff syntax/diff.vim
  12. syn region gitsendemailDiff start=/\%(^diff --\%(git\|cc\|combined\) \)\@=/ end=/^-- %/ fold contains=@gitsendemailDiff
  13. syn case match
  14. syn match gitsendemailComment "\%^From.*#.*"
  15. syn match gitsendemailComment "^GIT:.*"
  16. hi def link gitsendemailComment Comment
  17. let b:current_syntax = "gitsendemail"