summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrank LENORMAND <lenormf@gmail.com>2019-12-08 13:37:49 +0100
committerFrank LENORMAND <lenormf@gmail.com>2019-12-08 13:49:53 +0100
commitfde2550478f0ea780b4e7acf57a2020490553fc7 (patch)
tree817497d46793bacce0e916f4af4a2763b0fda85a
parent15df0fc78133059b28545bf0508fbd20c6b02c92 (diff)
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.
-rw-r--r--rc/filetype/git.kak2
1 files changed, 1 insertions, 1 deletions
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
}