view nanorc.d/patch.nanorc @ 124:c3320f06d412

Add a minimal global gitignore We could add more, but this is intended for things that only I need to ignore (such as build directories that other people might do differently) rather than stuff that everyone wants to do (like ignoring .pyc files or log files in the project)
author IBBoard <dev@ibboard.co.uk>
date Wed, 13 Mar 2019 19:19:50 +0000
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="^$"