mirror of
git://git.sv.gnu.org/nano.git
synced 2024-11-23 05:11:35 +03:00
41580848e3
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5163 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
22 lines
457 B
Plaintext
22 lines
457 B
Plaintext
## Here is an example for patch files.
|
|
|
|
syntax "patch" "\.(patch|diff|debdiff)$"
|
|
magic "diff output text"
|
|
|
|
# Added lines.
|
|
color brightgreen "^\+.*"
|
|
# Show trailing whitespace only on added lines.
|
|
color ,green "[[:space:]]+$"
|
|
# Context lines.
|
|
color brightblue "^ .*"
|
|
# Deleted lines.
|
|
color brightred "^-.*"
|
|
|
|
# File names and dates.
|
|
color red "^---.*"
|
|
color green "^\+\+\+.*"
|
|
# Line numbers.
|
|
color brightyellow "^@@.*"
|
|
# Header lines.
|
|
color magenta "^diff.*"
|