Mercurial > vim
annotate runtime/syntax/gitsendemail.vim @ 14475:dddba3937532 v8.1.0251
patch 8.1.0251: using full path is not supported for 'backupdir'
commit https://github.com/vim/vim/commit/b782ba475a3f8f2b0be99dda164ba4545347f60f
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Aug 7 21:39:28 2018 +0200
patch 8.1.0251: using full path is not supported for 'backupdir'
Problem: Using a full path is supported for 'directory' but not for
'backupdir'. (Mikolaj Machowski)
Solution: Support 'backupdir' as well. (Christian Brabandt, closes #179)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 07 Aug 2018 21:45:05 +0200 |
parents | 43efa4f5a8ea |
children |
rev | line source |
---|---|
1622 | 1 " Vim syntax file |
2 " Language: git send-email message | |
3 " Maintainer: Tim Pope | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
2202
diff
changeset
|
4 " Filenames: .gitsendemail.* |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
2202
diff
changeset
|
5 " Last Change: 2016 Aug 29 |
1622 | 6 |
7 if exists("b:current_syntax") | |
2202 | 8 finish |
1622 | 9 endif |
10 | |
11 runtime! syntax/mail.vim | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
2202
diff
changeset
|
12 unlet! b:current_syntax |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
2202
diff
changeset
|
13 syn include @gitsendemailDiff syntax/diff.vim |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
2202
diff
changeset
|
14 syn region gitsendemailDiff start=/\%(^diff --\%(git\|cc\|combined\) \)\@=/ end=/^-- %/ fold contains=@gitsendemailDiff |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
2202
diff
changeset
|
15 |
1622 | 16 syn case match |
17 | |
18 syn match gitsendemailComment "\%^From.*#.*" | |
19 syn match gitsendemailComment "^GIT:.*" | |
20 | |
21 hi def link gitsendemailComment Comment | |
22 | |
23 let b:current_syntax = "gitsendemail" |