Mercurial > repos > other > linux
view nanorc.d/patch.nanorc @ 148:a6fe8d1f5a13
Fix "less" highlighting in tmux
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 03 Jul 2021 10:41:27 +0100 |
parents | 03b4573837b5 |
children |
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 take the default text colour. # 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="^$"