blob: 37fe9db8bf4accc73fed7382a7a3df4aa07aa856 [file] [log] [blame]
Bram Moolenaar9b451252012-08-15 17:43:31 +02001" Vim syntax file
2" Language: hg (Mercurial) commit file
3" Maintainer: Ken Takata <kentkt at csc dot jp>
Bram Moolenaard09acef2012-09-21 14:54:30 +02004" Last Change: 2012 Aug 23
Bram Moolenaar9b451252012-08-15 17:43:31 +02005" Filenames: hg-editor-*.txt
6" License: VIM License
7" URL: https://github.com/k-takata/hg-vim
8
9if exists("b:current_syntax")
10 finish
11endif
12
Bram Moolenaard09acef2012-09-21 14:54:30 +020013syn match hgcommitComment "^HG:.*$" contains=@NoSpell
14syn match hgcommitUser "^HG: user: \zs.*$" contains=@NoSpell contained containedin=hgcommitComment
15syn match hgcommitBranch "^HG: branch \zs.*$" contains=@NoSpell contained containedin=hgcommitComment
16syn match hgcommitAdded "^HG: \zsadded .*$" contains=@NoSpell contained containedin=hgcommitComment
17syn match hgcommitChanged "^HG: \zschanged .*$" contains=@NoSpell contained containedin=hgcommitComment
18syn match hgcommitRemoved "^HG: \zsremoved .*$" contains=@NoSpell contained containedin=hgcommitComment
Bram Moolenaar9b451252012-08-15 17:43:31 +020019
20hi def link hgcommitComment Comment
21hi def link hgcommitUser String
22hi def link hgcommitBranch String
23hi def link hgcommitAdded Identifier
24hi def link hgcommitChanged Special
25hi def link hgcommitRemoved Constant
26
27let b:current_syntax = "hgcommit"