mirror of git://git.sv.gnu.org/nano.git
22 lines
449 B
Plaintext
22 lines
449 B
Plaintext
## Here is an example for patch files.
|
|
|
|
syntax "patch" "\.(patch|diff)$"
|
|
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.*"
|