From d219055bc845253eff2b27d30a23b11b97b7ee9d Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Sun, 19 Nov 2017 21:26:59 +0100 Subject: Update --- syntax/git.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'syntax/git.vim') diff --git a/syntax/git.vim b/syntax/git.vim index 964b0b8f..53f44d36 100644 --- a/syntax/git.vim +++ b/syntax/git.vim @@ -15,7 +15,7 @@ syn sync minlines=50 syn include @gitDiff syntax/diff.vim syn region gitHead start=/\%^/ end=/^$/ -syn region gitHead start=/\%(^commit \x\{40\}\%(\s*(.*)\)\=$\)\@=/ end=/^$/ +syn region gitHead start=/\%(^commit\%( \x\{40\}\)\{1,\}\%(\s*(.*)\)\=$\)\@=/ end=/^$/ " For git reflog and git show ...^{tree}, avoid sync issues syn match gitHead /^\d\{6\} \%(\w\{4} \)\=\x\{40\}\%( [0-3]\)\=\t.*/ -- cgit v1.2.3