comparison syntax/hgannotate.vim @ 59:396da6e76952

Added `Hgannotate` command.
author Ludovic Chabant <ludovic@chabant.com>
date Wed, 14 Nov 2012 22:30:49 -0800
parents
children e8b115e595d1
comparison
equal deleted inserted replaced
58:621185a5fa48 59:396da6e76952
1 " Vim syntax file
2 " Language: hg annotate 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 hgannotateAnnotation '\v[^\:]+\:'he=e-1
13 syn match hgannotateAuthor '\v^[^ ]+' containedin=hgannotateAnnotation
14 syn match hgannotateNumber '\v\s\d+\s'ms=s+1,me=e-1 containedin=hgannotateAnnotation
15 syn match hgannotateChangeset '\v\s[a-f0-9]{12}\s'ms=s+1,me=e-1 containedin=hgannotateAnnotation
16 syn match hgannotateDate '\v\s[0-9]{4}-[0-9]{2}-[0-9]{2}\:'ms=s+1,me=e-1 containedin=hgannotateAnnotation
17
18 hi def link hgannotateAuthor Keyword
19 hi def link hgannotateNumber Number
20 hi def link hgannotateChangeset Identifier
21 hi def link hgannotateDate PreProc
22