2006-06-01 21:23:28 +04:00
|
|
|
## Here is an example for patch files.
|
2014-05-16 15:08:52 +04:00
|
|
|
|
2015-03-27 12:14:21 +03:00
|
|
|
syntax "patch" "\.(patch|diff|debdiff)$"
|
2011-02-13 07:23:10 +03:00
|
|
|
magic "diff output text"
|
2014-05-16 15:08:52 +04:00
|
|
|
|
|
|
|
# Added lines.
|
2006-06-01 21:23:28 +04:00
|
|
|
color brightgreen "^\+.*"
|
2014-05-16 15:08:52 +04:00
|
|
|
# Show trailing whitespace only on added lines.
|
|
|
|
color ,green "[[:space:]]+$"
|
|
|
|
# Context lines.
|
2006-06-01 21:23:28 +04:00
|
|
|
color brightblue "^ .*"
|
2014-05-16 15:08:52 +04:00
|
|
|
# Deleted lines.
|
2006-06-01 21:23:28 +04:00
|
|
|
color brightred "^-.*"
|
2014-05-16 15:08:52 +04:00
|
|
|
|
|
|
|
# File names and dates.
|
2006-06-01 21:23:28 +04:00
|
|
|
color red "^---.*"
|
2014-05-16 15:08:52 +04:00
|
|
|
color green "^\+\+\+.*"
|
|
|
|
# Line numbers.
|
2006-06-01 21:23:28 +04:00
|
|
|
color brightyellow "^@@.*"
|
2014-05-16 15:08:52 +04:00
|
|
|
# Header lines.
|
2006-06-01 21:23:28 +04:00
|
|
|
color magenta "^diff.*"
|