mirror of
git://git.sv.gnu.org/nano.git
synced 2024-12-02 01:17:15 +03:00
3e1fc6385b
The different color will make the name stand out, as it should, instead of looking the same as all the regex strings.
27 lines
590 B
Plaintext
27 lines
590 B
Plaintext
## Here is an example for patch files.
|
|
|
|
syntax patch "\.(patch|diff|debdiff)$"
|
|
magic "diff output"
|
|
# There is no official support for comments in patch files.
|
|
comment ""
|
|
|
|
# Added lines.
|
|
color brightgreen "^\+.*"
|
|
# Show trailing whitespace only on added lines.
|
|
color ,green "[[:space:]]+$"
|
|
# Context lines.
|
|
color brightblue "^ .*"
|
|
# Deleted lines.
|
|
color brightred "^-.*"
|
|
|
|
# Header lines.
|
|
color magenta "^(Index:|diff)[[:blank:]].*"
|
|
# File names and dates.
|
|
color red "^---.*"
|
|
color green "^\+\+\+.*"
|
|
# Line numbers.
|
|
color brightyellow "^@@.*"
|
|
|
|
# Statistics.
|
|
color cyan start="^---$" end="^$"
|