3750
|
1 " Vim syntax file
|
|
2 " Language: hg (Mercurial) commit file
|
|
3 " Maintainer: Ken Takata <kentkt at csc dot jp>
|
3830
|
4 " Last Change: 2012 Aug 23
|
3750
|
5 " Filenames: hg-editor-*.txt
|
|
6 " License: VIM License
|
|
7 " URL: https://github.com/k-takata/hg-vim
|
|
8
|
|
9 if exists("b:current_syntax")
|
|
10 finish
|
|
11 endif
|
|
12
|
3830
|
13 syn match hgcommitComment "^HG:.*$" contains=@NoSpell
|
|
14 syn match hgcommitUser "^HG: user: \zs.*$" contains=@NoSpell contained containedin=hgcommitComment
|
|
15 syn match hgcommitBranch "^HG: branch \zs.*$" contains=@NoSpell contained containedin=hgcommitComment
|
|
16 syn match hgcommitAdded "^HG: \zsadded .*$" contains=@NoSpell contained containedin=hgcommitComment
|
|
17 syn match hgcommitChanged "^HG: \zschanged .*$" contains=@NoSpell contained containedin=hgcommitComment
|
|
18 syn match hgcommitRemoved "^HG: \zsremoved .*$" contains=@NoSpell contained containedin=hgcommitComment
|
3750
|
19
|
|
20 hi def link hgcommitComment Comment
|
|
21 hi def link hgcommitUser String
|
|
22 hi def link hgcommitBranch String
|
|
23 hi def link hgcommitAdded Identifier
|
|
24 hi def link hgcommitChanged Special
|
|
25 hi def link hgcommitRemoved Constant
|
|
26
|
|
27 let b:current_syntax = "hgcommit"
|