1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 06:10:05 +08:00
SpaceVim/bundle/git.vim/syntax/git-log.vim
2021-01-02 18:15:08 +08:00

13 lines
400 B
VimL
Vendored

if exists('b:current_syntax')
finish
endif
let b:current_syntax = 'git-log'
syntax case ignore
syn match GitLogCommitHash /^[*|\\ \/]\+\zs[a-z0-9]\+/
syn match GitLogCommitBranchLog /\(^*\s\+[a-z0-9A-Z]*\s\+-\s\+\)\@<=([^)]*)/
syn match GitLogCommitAuthorDate /([^(]*)$/
hi def link GitLogCommitHash Statement
hi def link GitLogCommitBranchLog Comment
hi def link GitLogCommitAuthorDate Comment