Mercurial > vim-lawrencium
view syntax/hgcommit.vim @ 91:e21a1819ab27
New command to export a patch and allow existing log command to take options.
* Hglogexport command takes patch name as input. If the env variable
HG_EXPORT_PATCH_DIR is set, then the patch will be created under it.
Otherwise, it will be created in the directory from which vim
was launched.
* HgLog command takes options that can be passed to hg log command.
E.g., the following command will list just 3 logs by user bob.
:Hglog -u bob -l 3
Testing:
* Patch gets created under the right directory when env variable is set
and not set.
* Hglog command honors -u and -l options. It also works when current
file name is given as input --> :Hglog % -u bob -l 3
author | Kannan Rajah <krajah@maprtech.com> |
---|---|
date | Sat, 05 Jul 2014 17:16:42 -0700 |
parents | adc267e2f0f4 |
children |
line wrap: on
line source
" Vim syntax file " Language: hg commit file " Maintainer: Pierre Bourdon <delroth@gmail.com> " Filenames: ^hg-editor-*.txt " Last Change: 2010 Jun 13 " Some parts of the code by Dan LaMotte <lamotte85@gmail.com> if exists("b:current_syntax") finish endif syn case match syn sync minlines=50 if has("spell") syn spell toplevel endif syn match hgcommitFirstline "\%^.*" nextgroup=hgcommitBlank skipnl syn match hgcommitSummary "^.\{0,78\}" contained containedin=hgcommitFirstline nextgroup=hgcommitOverflow contains=@Spell syn match hgcommitOverflow ".*" contained contains=@Spell syn match hgcommitBlank "^HG:\@!.*" contained contains=@Spell syn match hgcommitComment "^HG:.*" syn match hgcommitOnBranch "\%(^HG: \)\@<=\<branch\> '" contained containedin=hgcommitComment nextgroup=hgcommitBranch syn match hgcommitBranch "[^']\+" contained syn match hgcommitAdded "\%(^HG: \)\@<=\<added\>" contained containedin=hgcommitComment nextgroup=hgcommitFile syn match hgcommitChanged "\%(^HG: \)\@<=\<changed\>" contained containedin=hgcommitComment nextgroup=hgcommitFile syn match hgcommitRemoved "\%(^HG: \)\@<=\<removed\>" contained containedin=hgcommitComment nextgroup=hgcommitFile syn match hgcommitFile " \S\+" contained containedin=hgcommitAdded,hgcommitChanged hi def link hgcommitSummary Keyword hi def link hgcommitOverflow Error hi def link hgcommitBlank Error hi def link hgcommitComment Comment hi def link hgcommitOnBranch Comment hi def link hgcommitBranch Special hi def link hgcommitOnBranchEnd Comment hi def link hgcommitAdded Type hi def link hgcommitChanged Type hi def link hgcommitRemoved Type hi def link hgcommitFile Constant