From fde2550478f0ea780b4e7acf57a2020490553fc7 Mon Sep 17 00:00:00 2001 From: Frank LENORMAND Date: Sun, 8 Dec 2019 13:37:49 +0100 Subject: [PATCH] rc git: Highlight commands differently from `pick` The `pick` command in a rebase commit is virtually a no-op, but other commands actually do things. This commit visually communicates that fact. Fixes #3208. --- rc/filetype/git.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc/filetype/git.kak b/rc/filetype/git.kak index 3a39ab37..a8eb65d9 100644 --- a/rc/filetype/git.kak +++ b/rc/filetype/git.kak @@ -49,5 +49,5 @@ add-highlighter shared/git-notes regex '^\h*#[^\n]*$' 0:comment provide-module git-rebase %{ add-highlighter shared/git-rebase group add-highlighter shared/git-rebase/ regex "#[^\n]*\n" 0:comment -add-highlighter shared/git-rebase/ regex "^(pick|edit|reword|squash|fixup|exec|break|drop|label|reset|merge|[persfxbdltm]) (\w+)" 1:keyword 2:meta +add-highlighter shared/git-rebase/ regex "^(?:(pick|p)|(edit|reword|squash|fixup|exec|break|drop|label|reset|merge|[ersfxbdltm])) (\w+)" 1:keyword 2:value 3:meta }