hgcommit.vim 1.1 KB

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