Browse Source

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 #766.
pull/767/head
Chip Hogg 9 years ago
parent
commit
1acc452c1d
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      syntax/vundlelog.vim

+ 2
- 2
syntax/vundlelog.vim View File

@ -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.
@ -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

Loading…
Cancel
Save