1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 05:40:05 +08:00
SpaceVim/syntax/SpaceVimGitLogPopup.vim
Wang Shidong b448b0a40f
Add plugin for git log (#1963)
Impore the git transtate key binding, and add a plugin for view git log.
2019-01-01 06:43:33 -06:00

19 lines
540 B
VimL

if exists('b:current_syntax') && b:current_syntax ==# 'SpaceVimGitLogPopup'
finish
endif
let b:current_syntax = 'SpaceVimGitLogPopup'
syntax case ignore
" option title
syn match GitLogPopupTitle /^[A-Z].*/
" key binding
syn match GitLogKey /\ [-=]\?[a-zA-Z]\ /
" desc
syn match GitLogDesc /\(\ [-=]\?[a-zA-Z]\ \)\@<=[A-Z][a-z]*\s\([a-zA-Z-]\+\s\)*\([a-zA-Z]\)\+/
syn match GitLogOption /\((\)\@<=[^(^)]*/
hi def link GitLogPopupTitle ModeMsg
hi def link GitLogKey Type
hi def link GitLogDesc Identifier
hi def link GitLogOption Comment