Blame syntax/patch.nanorc

Packit 1ac44c
## Here is an example for patch files.
Packit 1ac44c
Packit 1ac44c
syntax patch "\.(patch|diff|debdiff)$"
Packit 1ac44c
magic "diff output"
Packit 1ac44c
# There is no official support for comments in patch files.
Packit 1ac44c
comment ""
Packit 1ac44c
Packit 1ac44c
# Added lines.
Packit 1ac44c
color brightgreen "^\+.*"
Packit 1ac44c
# Show trailing whitespace only on added lines.
Packit 1ac44c
color ,green "[[:space:]]+$"
Packit 1ac44c
# Context lines.
Packit 1ac44c
color brightblue "^ .*"
Packit 1ac44c
# Deleted lines.
Packit 1ac44c
color brightred "^-.*"
Packit 1ac44c
Packit 1ac44c
# Header lines.
Packit 1ac44c
color magenta "^(Index:|diff)[[:blank:]].*"
Packit 1ac44c
# File names and dates.
Packit 1ac44c
color red "^---.*"
Packit 1ac44c
color green "^\+\+\+.*"
Packit 1ac44c
# Line numbers.
Packit 1ac44c
color brightyellow "^@@.*"
Packit 1ac44c
Packit 1ac44c
# Statistics.
Packit 1ac44c
color cyan start="^---$" end="^$"