Skip to content

Commit d805739

Browse files
chiphogg5HT2
authored andcommitted
Recognize underscores as commit tree characters
Currently, any line in a commit tree representation with an underscore will not be highlighted correctly. The solution is to add the underscore to the list of commit tree characters. Fixes VundleVim#766.
1 parent 6365e01 commit d805739

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

syntax/vundlelog.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ highlight link VundleCompareUrl Underlined
1919
" The main commit line.
2020
" Note that this regex is intimately related to the one for VundleCommitTree,
2121
" and the two should be changed in sync.
22-
syntax match VundleCommitLine '\v(^ [|*]( *[\\|/\*])* )@<=[^*|].*$'
22+
syntax match VundleCommitLine '\v(^ [|*]( *[\\|_/\*])* )@<=[^*|].*$'
2323
\ contains=VundleCommitMerge,VundleCommitUser,VundleCommitTime
2424
highlight link VundleCommitLine String
2525
" Sub-regions inside the commit message.
@@ -32,5 +32,5 @@ highlight link VundleCommitTime Comment
3232
" The git history DAG markers are outside of the main commit line region.
3333
" Note that this regex is intimately related to the one for VundleCommitLine,
3434
" and the two should be changed in sync.
35-
syntax match VundleCommitTree '\v(^ )@<=[|*]( *[\\|/\*])*'
35+
syntax match VundleCommitTree '\v(^ )@<=[|*]( *[\\|_/\*])*'
3636
highlight link VundleCommitTree Label

0 commit comments

Comments
 (0)