From 78d4675c24672634478decb39734e905fdc11fe5 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 30 Aug 2012 18:56:05 +0200 Subject: [PATCH] git.kak: tweak highlighting --- src/rc/git.kak | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/rc/git.kak b/src/rc/git.kak index 1707b33a..4e800764 100644 --- a/src/rc/git.kak +++ b/src/rc/git.kak @@ -5,8 +5,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 "\<(modified|deleted|new file):[^\n]*\n" 0:magenta,default - addhl -group git-commit-highlight regex "\<(modified|deleted|new file):" 0:red,default + addhl -group git-commit-highlight regex "\<(?:(modified)|(deleted)|(new file)):([^\n]*)\n" 1:yellow 2:red 3:green 4:magenta } hook global WinSetOption filetype=(?!git-commit).* %{ @@ -20,8 +19,7 @@ hook global BufCreate .*git-rebase-todo %{ hook global WinSetOption filetype=git-rebase %{ addhl group git-rebase-highlight addhl -group git-rebase-highlight regex "#[^\n]*\n" 0:cyan,default - addhl -group git-rebase-highlight regex "^(pick|edit|reword|squash|fixup|exec|[persfx]) \w+" 0:magenta,default - addhl -group git-rebase-highlight regex "^(pick|edit|reword|squash|fixup|exec|[persfx])" 0:green,default + addhl -group git-rebase-highlight regex "^(pick|edit|reword|squash|fixup|exec|[persfx]) (\w+)" 1:green 2:magenta } hook global WinSetOption filetype=(?!git-rebase).* %{