summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2014-09-11 19:37:34 +0100
committerMaxime Coste <frrrwww@gmail.com>2014-09-11 19:37:34 +0100
commitbaa9dd247461a024a3eca252de6b3782d72ec4a3 (patch)
tree70f369c1bd7ca2eec3bba1fd399e8b7f398b3c06
parent827a77539af80d7ffa314d13c4cc4e7927709a55 (diff)
Fix git commit message highlighting
-rw-r--r--rc/git.kak2
1 files changed, 1 insertions, 1 deletions
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
}