Commit fd3423f7 authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

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.
parent a4044a7e
Showing with 5 additions and 2 deletions
+5 -2
...@@ -14,10 +14,13 @@ color brightblue "^ .*" ...@@ -14,10 +14,13 @@ color brightblue "^ .*"
# Deleted lines. # Deleted lines.
color brightred "^-.*" color brightred "^-.*"
# Header lines.
color magenta "^(Index:|diff)[[:blank:]].*"
# File names and dates. # File names and dates.
color red "^---.*" color red "^---.*"
color green "^\+\+\+.*" color green "^\+\+\+.*"
# Line numbers. # Line numbers.
color brightyellow "^@@.*" color brightyellow "^@@.*"
# Header lines.
color magenta "^diff.*" # Statistics.
color cyan start="^---$" end="^$"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment