Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes15kdownloads
hgcommit.vim31 linesDownload Raw Back to syntax
1" Vim syntax file2" Language:	hg/sl (Mercurial / Sapling) commit file3" Maintainer:	Ken Takata <kentkt at csc dot jp>4"  		Max Coplan <mchcopl@gmail.com>5" Last Change:	2022-12-086" License:	VIM License7" URL:		https://github.com/k-takata/hg-vim8 9if exists("b:current_syntax")10  finish11endif12 13syn match hgcommitComment "^\%(SL\|HG\): .*$"            contains=@NoSpell14syn match hgcommitUser    "^\%(SL\|HG\): user: \zs.*$"   contains=@NoSpell contained containedin=hgcommitComment15syn match hgcommitBranch  "^\%(SL\|HG\): branch \zs.*$"  contains=@NoSpell contained containedin=hgcommitComment16syn match hgcommitAdded   "^\%(SL\|HG\): \zsadded .*$"   contains=@NoSpell contained containedin=hgcommitComment17syn match hgcommitChanged "^\%(SL\|HG\): \zschanged .*$" contains=@NoSpell contained containedin=hgcommitComment18syn match hgcommitRemoved "^\%(SL\|HG\): \zsremoved .*$" contains=@NoSpell contained containedin=hgcommitComment19 20syn region hgcommitDiff start=/\%(^\(SL\|HG\): diff --\%(git\|cc\|combined\) \)\@=/ end=/^\%(diff --\|$\|@@\@!\|[^[:alnum:]\ +-]\S\@!\)\@=/ fold contains=@hgcommitDiff21syn include @hgcommitDiff syntax/shared/hgcommitDiff.vim22 23hi def link hgcommitComment Comment24hi def link hgcommitUser    String25hi def link hgcommitBranch  String26hi def link hgcommitAdded   Identifier27hi def link hgcommitChanged Special28hi def link hgcommitRemoved Constant29 30let b:current_syntax = "hgcommit"31 
codekingpro/portable-devtools · Team Ai