git.kak: tweak highlighting

This commit is contained in:
Maxime Coste 2012-08-30 18:56:05 +02:00
parent f1d8d0add8
commit 78d4675c24

View File

@ -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).* %{