|
1 | 1 | " --------------------------------------------------------------------------- |
2 | 2 | " Syntax highlighting for the line which identifies the plugin. |
3 | 3 | " --------------------------------------------------------------------------- |
4 | | -syntax match VundlePluginName '\v(^Updated Plugin: )@<=.*$' |
| 4 | +syntax match VundlePluginName '\v\C(Plugin )@<=\S+/\S+(\s|$)' |
5 | 5 | highlight link VundlePluginName Keyword |
6 | 6 |
|
7 | 7 | " --------------------------------------------------------------------------- |
8 | | -" Syntax highlighting for the 'compare at' line of each plugin. |
| 8 | +" Syntax highlighting for diffs on each plugin |
9 | 9 | " --------------------------------------------------------------------------- |
10 | | -syntax region VundleCompareLine start='\v^Compare at: https:' end='\v\n' |
11 | | - \ contains=VundleCompareUrl |
12 | | -syntax match VundleCompareUrl '\vhttps:\S+' |
13 | | -highlight link VundleCompareLine Comment |
14 | | -highlight link VundleCompareUrl Underlined |
| 10 | +syntax match VundleGitAddition '\v(\|\s*\d+ )@<=\++' |
| 11 | +highlight VundleGitAddition guifg=darkgreen guibg=NONE gui=bold |
| 12 | + \ ctermfg=darkgreen ctermbg=NONE cterm=bold |
| 13 | + |
| 14 | +syntax match VundleGitDeletion '\v(\|\s*\d+ \+*)@<=-+' |
| 15 | +highlight VundleGitDeletion guifg=red guibg=NONE gui=bold ctermfg=red |
| 16 | + \ ctermbg=NONE cterm=bold |
15 | 17 |
|
16 | 18 | " --------------------------------------------------------------------------- |
17 | | -" Syntax highlighting for individual commits. |
| 19 | +" Syntax highlighting for log-specific features |
18 | 20 | " --------------------------------------------------------------------------- |
19 | | -" The main commit line. |
20 | | -" Note that this regex is intimately related to the one for VundleCommitTree, |
21 | | -" and the two should be changed in sync. |
22 | | -syntax match VundleCommitLine '\v(^ [|*]( *[\\|/\*])* )@<=[^*|].*$' |
23 | | - \ contains=VundleCommitMerge,VundleCommitUser,VundleCommitTime |
24 | | -highlight link VundleCommitLine String |
25 | | -" Sub-regions inside the commit message. |
26 | | -syntax match VundleCommitMerge '\v Merge pull request #\d+.*' |
27 | | -syntax match VundleCommitUser '\v( )@<=\S+( \S+)*(, \d+ \w+ ago$)@=' |
28 | | -syntax match VundleCommitTime '\v(, )@<=\d+ \w+ ago$' |
29 | | -highlight link VundleCommitMerge Ignore |
30 | | -highlight link VundleCommitUser Identifier |
31 | | -highlight link VundleCommitTime Comment |
32 | | -" The git history DAG markers are outside of the main commit line region. |
33 | | -" Note that this regex is intimately related to the one for VundleCommitLine, |
34 | | -" and the two should be changed in sync. |
35 | | -syntax match VundleCommitTree '\v(^ )@<=[|*]( *[\\|/\*])*' |
36 | | -highlight link VundleCommitTree Label |
| 21 | +syntax match VundleCaret '\V >' |
| 22 | +highlight link VundleCaret Label |
| 23 | + |
| 24 | +" Make path to tags file stand out |
| 25 | +syntax match VundleTagPath '\v\C(:helptags )@<=/\S+$' |
| 26 | +highlight link VundleTagPath Comment |
| 27 | + |
| 28 | +" Make URL stand out |
| 29 | +syntax match VundleCompareUrl '\v\Chttps:\S+' |
| 30 | +highlight link VundleCompareUrl Underlined |
| 31 | + |
| 32 | +" Make errors (from git) stand out |
| 33 | +syntax match VundleError '\v\C( \> )@<=fatal:.*$' |
| 34 | +highlight link VundleError Error |
| 35 | + |
| 36 | +" Make git messages stand out |
| 37 | +syntax match VundleGitMsg '\v\C( \> )@<=git:.*$' |
| 38 | +highlight link VundleGitMsg Type |
| 39 | + |
| 40 | +" De-emphasize the time stamp |
| 41 | +syntax match VundleTimeStamp '\m^\[\d\{4}-\d\{2}-\d\{2} \d\{2}:\d\{2}:\d\{2}]' |
| 42 | +highlight link VundleTimeStamp String |
0 commit comments