Skip to content

Commit

Permalink
Recognize underscores as commit tree characters
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
chiphogg committed Nov 6, 2016
1 parent 88688fe commit 1acc452
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions syntax/vundlelog.vim
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ highlight link VundleCompareUrl Underlined
" The main commit line.
" Note that this regex is intimately related to the one for VundleCommitTree,
" and the two should be changed in sync.
syntax match VundleCommitLine '\v(^ [|*]( *[\\|/\*])* )@<=[^*|].*$'
syntax match VundleCommitLine '\v(^ [|*]( *[\\|_/\*])* )@<=[^*|].*$'
\ contains=VundleCommitMerge,VundleCommitUser,VundleCommitTime
highlight link VundleCommitLine String
" Sub-regions inside the commit message.
Expand All @@ -32,5 +32,5 @@ highlight link VundleCommitTime Comment
" The git history DAG markers are outside of the main commit line region.
" Note that this regex is intimately related to the one for VundleCommitLine,
" and the two should be changed in sync.
syntax match VundleCommitTree '\v(^ )@<=[|*]( *[\\|/\*])*'
syntax match VundleCommitTree '\v(^ )@<=[|*]( *[\\|_/\*])*'
highlight link VundleCommitTree Label

0 comments on commit 1acc452

Please sign in to comment.