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.
This commit is contained in:
Frank LENORMAND 2019-12-08 13:37:49 +01:00
parent 15df0fc781
commit fde2550478

View File

@ -49,5 +49,5 @@ add-highlighter shared/git-notes regex '^\h*#[^\n]*$' 0:comment
provide-module git-rebase %{ provide-module git-rebase %{
add-highlighter shared/git-rebase group add-highlighter shared/git-rebase group
add-highlighter shared/git-rebase/ regex "#[^\n]*\n" 0:comment 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
} }