2006-06-01 17:23:28 +00:00
|
|
|
## Here is an example for patch files.
|
2014-05-16 11:08:52 +00:00
|
|
|
|
2015-03-27 09:14:21 +00:00
|
|
|
syntax "patch" "\.(patch|diff|debdiff)$"
|
2017-11-19 10:10:53 +00:00
|
|
|
magic "diff output"
|
2016-05-25 20:13:50 +00:00
|
|
|
# There is no official support for comments in patch files.
|
|
|
|
comment ""
|
2014-05-16 11:08:52 +00:00
|
|
|
|
|
|
|
# Added lines.
|
2006-06-01 17:23:28 +00:00
|
|
|
color brightgreen "^\+.*"
|
2014-05-16 11:08:52 +00:00
|
|
|
# Show trailing whitespace only on added lines.
|
|
|
|
color ,green "[[:space:]]+$"
|
|
|
|
# Context lines.
|
2006-06-01 17:23:28 +00:00
|
|
|
color brightblue "^ .*"
|
2014-05-16 11:08:52 +00:00
|
|
|
# Deleted lines.
|
2006-06-01 17:23:28 +00:00
|
|
|
color brightred "^-.*"
|
2014-05-16 11:08:52 +00:00
|
|
|
|
2016-12-10 16:46:10 +00:00
|
|
|
# Header lines.
|
|
|
|
color magenta "^(Index:|diff)[[:blank:]].*"
|
2014-05-16 11:08:52 +00:00
|
|
|
# File names and dates.
|
2006-06-01 17:23:28 +00:00
|
|
|
color red "^---.*"
|
2014-05-16 11:08:52 +00:00
|
|
|
color green "^\+\+\+.*"
|
|
|
|
# Line numbers.
|
2006-06-01 17:23:28 +00:00
|
|
|
color brightyellow "^@@.*"
|
2016-12-10 16:46:10 +00:00
|
|
|
|
|
|
|
# Statistics.
|
|
|
|
color cyan start="^---$" end="^$"
|