aboutsummaryrefslogtreecommitdiffstats
path: root/doc/syntax/patch.nanorc
blob: 744408cdb8076cfbcefdd741cd24786e6c24e9d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
## 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.*"