comparison nanorc.d/patch.nanorc @ 85:ef08bb127ede

Ditch third-party nanorc configs and just add what we use Started to modify some of the stock configs
author IBBoard <dev@ibboard.co.uk>
date Mon, 02 Apr 2018 16:42:48 +0100
parents b989099cde9f
children 5f2c5800fa8a
comparison
equal deleted inserted replaced
84:b989099cde9f 85:ef08bb127ede
1 ## Here is an example for patch files. 1 ## Here is an example for patch files.
2 ## 2
3 syntax "Patch" "\.(patch|diff)$" 3 syntax patch "\.(patch|diff|debdiff)$"
4 color brightgreen "^\+.*" 4 magic "diff output"
5 # There is no official support for comments in patch files.
6 comment ""
7
8 # Added lines.
9 color green "^\+.*"
10 # Show trailing whitespace only on added lines.
11 color ,green "[[:space:]]+$"
12 # Context lines.
13 color black "^ .*"
14 # Deleted lines.
15 color red "^-.*"
16
17 # Header lines.
18 color brightblue "^(Index:|index|diff)[[:blank:]].*"
19 # File names and dates.
20 color red "^---.*"
5 color green "^\+\+\+.*" 21 color green "^\+\+\+.*"
6 color brightblue "^ .*" 22 # Line numbers.
7 color brightred "^-.*" 23 color magenta "^@@.*"
8 color red "^---.*" 24
9 color brightyellow "^@@.*" 25 # Statistics.
10 color magenta "^diff.*" 26 color cyan start="^---$" end="^$"