blob: 14460e7811f276a079337a89ac557409e34c4074 [file] [log] [blame]
David Lawrence Ramsey5e6434c2006-06-01 17:23:28 +00001## Here is an example for patch files.
Benno Schulenberg3edcfd22014-05-16 11:08:52 +00002
Benno Schulenberg41580842015-03-27 09:14:21 +00003syntax "patch" "\.(patch|diff|debdiff)$"
Chris Allegrettab00d0b92011-02-13 04:23:10 +00004magic "diff output text"
Mike Scalora6a2032f2016-05-25 22:13:50 +02005# There is no official support for comments in patch files.
6comment ""
Benno Schulenberg3edcfd22014-05-16 11:08:52 +00007
8# Added lines.
David Lawrence Ramsey5e6434c2006-06-01 17:23:28 +00009color brightgreen "^\+.*"
Benno Schulenberg3edcfd22014-05-16 11:08:52 +000010# Show trailing whitespace only on added lines.
11color ,green "[[:space:]]+$"
12# Context lines.
David Lawrence Ramsey5e6434c2006-06-01 17:23:28 +000013color brightblue "^ .*"
Benno Schulenberg3edcfd22014-05-16 11:08:52 +000014# Deleted lines.
David Lawrence Ramsey5e6434c2006-06-01 17:23:28 +000015color brightred "^-.*"
Benno Schulenberg3edcfd22014-05-16 11:08:52 +000016
Benno Schulenbergfd3423f2016-12-10 17:46:10 +010017# Header lines.
18color magenta "^(Index:|diff)[[:blank:]].*"
Benno Schulenberg3edcfd22014-05-16 11:08:52 +000019# File names and dates.
David Lawrence Ramsey5e6434c2006-06-01 17:23:28 +000020color red "^---.*"
Benno Schulenberg3edcfd22014-05-16 11:08:52 +000021color green "^\+\+\+.*"
22# Line numbers.
David Lawrence Ramsey5e6434c2006-06-01 17:23:28 +000023color brightyellow "^@@.*"
Benno Schulenbergfd3423f2016-12-10 17:46:10 +010024
25# Statistics.
26color cyan start="^---$" end="^$"