From fd3423f79a47a39d58239b8ad5dff3fb16c09620 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Sat, 10 Dec 2016 17:46:10 +0100 Subject: [PATCH] syntax: give the statistics part of a git patch a different color Also, be more selective when coloring a git diff line. And color an svn index line too. --- doc/syntax/patch.nanorc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/doc/syntax/patch.nanorc b/doc/syntax/patch.nanorc index b3660bf9..14460e78 100644 --- a/doc/syntax/patch.nanorc +++ b/doc/syntax/patch.nanorc @@ -14,10 +14,13 @@ color brightblue "^ .*" # Deleted lines. color brightred "^-.*" +# Header lines. +color magenta "^(Index:|diff)[[:blank:]].*" # File names and dates. color red "^---.*" color green "^\+\+\+.*" # Line numbers. color brightyellow "^@@.*" -# Header lines. -color magenta "^diff.*" + +# Statistics. +color cyan start="^---$" end="^$"