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)$"
|
2011-02-13 04:23:10 +00:00
|
|
|
magic "diff output text"
|
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
|
|
|
|
|
|
|
# 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 "^@@.*"
|
2014-05-16 11:08:52 +00:00
|
|
|
# Header lines.
|
2006-06-01 17:23:28 +00:00
|
|
|
color magenta "^diff.*"
|