Skip to content

Instantly share code, notes, and snippets.

@flatcap
Created August 13, 2022 10:16
Show Gist options
  • Save flatcap/e97d6bf5172c9f27bed521eddda93e13 to your computer and use it in GitHub Desktop.
Save flatcap/e97d6bf5172c9f27bed521eddda93e13 to your computer and use it in GitHub Desktop.
# Patch syntax highlighting
# color normal white default
# Diff changes
color body brightgreen default "^[+].*"
color body brightred default "^[-].*"
# Diff file
color body green default "^[-][-][-] .*"
color body green default "^[+][+][+] .*"
# Diff header
color body green default "^diff .*"
color body green default "^index .*"
# Diff chunk
color body cyan default "^@@ .*"
# Linked issue
color body brightgreen default "^(close[ds]*|fix(e[ds])*|resolve[sd]*):* *#[0-9]+$"
# Credit
color body brightwhite default "(signed-off|co-authored)-by: .*"
# color body brightwhite default ^[[:space:]].*
# color body brightwhite default ^(diff).*
# color body brightwhite default ^(\s).*
# color body brightwhite default ^(Signed-off-by).*
# color body brightwhite default ^(Cc)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment