diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2020-07-26 10:20:08 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2020-07-26 10:20:08 +0200 |
commit | 56121b4e27cb48efb17be55a969b2f0d725266f8 (patch) | |
tree | 30df0f431705cdb72b2014177ce3f0655287a81c /syntax/gitcommit.vim | |
parent | 9c3c0bc082e0d58d15dc6f24d8a335931417e2f0 (diff) | |
download | vim-polyglot-56121b4e27cb48efb17be55a969b2f0d725266f8.tar.gz vim-polyglot-56121b4e27cb48efb17be55a969b2f0d725266f8.zip |
Update
Diffstat (limited to '')
-rw-r--r-- | syntax/gitcommit.vim | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/syntax/gitcommit.vim b/syntax/gitcommit.vim index 38cad35e..af5d4280 100644 --- a/syntax/gitcommit.vim +++ b/syntax/gitcommit.vim @@ -4,7 +4,7 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'git') == -1 " Language: git commit file " Maintainer: Tim Pope <vimNOSPAM@tpope.org> " Filenames: *.git/COMMIT_EDITMSG -" Last Change: 2016 Aug 29 +" Last Change: 2019 Dec 05 if exists("b:current_syntax") finish @@ -32,6 +32,7 @@ else syn match gitcommitComment "^#.*" endif +syn match gitcommitHash "\<\x\{40,}\>" contains=@NoSpell display syn match gitcommitHead "^\%(# .*\n\)\+#$" contained transparent syn match gitcommitOnBranch "\%(^# \)\@<=On branch" contained containedin=gitcommitComment nextgroup=gitcommitBranch skipwhite syn match gitcommitOnBranch "\%(^# \)\@<=Your branch .\{-\} '" contained containedin=gitcommitComment nextgroup=gitcommitBranch skipwhite @@ -69,6 +70,7 @@ hi def link gitcommitUntracked gitcommitComment hi def link gitcommitDiscarded gitcommitComment hi def link gitcommitSelected gitcommitComment hi def link gitcommitUnmerged gitcommitComment +hi def link gitcommitHash Identifier hi def link gitcommitOnBranch Comment hi def link gitcommitBranch Special hi def link gitcommitNoBranch gitCommitBranch |