From baa9dd247461a024a3eca252de6b3782d72ec4a3 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 11 Sep 2014 19:37:34 +0100 Subject: [PATCH] Fix git commit message highlighting --- rc/git.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc/git.kak b/rc/git.kak index 0444cdd7..bd17f350 100644 --- a/rc/git.kak +++ b/rc/git.kak @@ -4,7 +4,7 @@ hook global BufCreate .*COMMIT_EDITMSG %{ hook global WinSetOption filetype=git-commit %{ addhl group git-commit-highlight - addhl -group git-commit-highlight regex "#[^\n]*\n" 0:cyan,default + addhl -group git-commit-highlight regex "^\h*#[^\n]*\n" 0:cyan,default addhl -group git-commit-highlight regex "\<(?:(modified)|(deleted)|(new file)|(renamed)):([^\n]*)\n" 1:yellow 2:red 3:green 4:blue 5:magenta }