comparison syntax/hglog.vim @ 53:b7caa6693c39

`Hglog` window improvements: - Using a better looking Mercurial style file. - Using syntax highlighting.
author Ludovic Chabant <ludovic@chabant.com>
date Sat, 10 Nov 2012 22:53:46 -0800
parents
children
comparison
equal deleted inserted replaced
52:cd0b1cea326c 53:b7caa6693c39
1 " Vim syntax file
2 " Language: hg log output
3 " Maintainer: Ludovic Chabant <ludovic@chabant.com>
4 " Filenames: <none>
5
6 if exists("b:current_syntax")
7 finish
8 endif
9
10 syn case match
11
12 syn match hglogRev '\v^[0-9]+'
13 syn match hglogNode '\v:[a-f0-9]{6,} 'hs=s+1,me=e-1
14 syn match hglogBookmark '\v \+[^ ]+ 'ms=s+1,me=e-1 contains=hglogBookmarkPlus
15 syn match hglogTag '\v #[^ ]+ 'ms=s+1,me=e-1 contains=hglogTagSharp
16 syn match hglogAuthorAndAge '\v\(by .+, .+\)$'
17
18 syn match hglogBookmarkPlus '\v\+' contained conceal
19 syn match hglogTagSharp '\v#' contained conceal
20
21 hi def link hglogRev Identifier
22 hi def link hglogNode PreProc
23 hi def link hglogBookmark Statement
24 hi def link hglogTag Constant
25 hi def link hglogAuthorAndAge Comment