Mercurial > repos > other > linux
view 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 |
line wrap: on
line source
## 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 green "^\+.*" # Show trailing whitespace only on added lines. color ,green "[[:space:]]+$" # Context lines. color black "^ .*" # Deleted lines. color red "^-.*" # Header lines. color brightblue "^(Index:|index|diff)[[:blank:]].*" # File names and dates. color red "^---.*" color green "^\+\+\+.*" # Line numbers. color magenta "^@@.*" # Statistics. color cyan start="^---$" end="^$"