diff options
author | Lorry Tar Creator <lorry-tar-importer@baserock.org> | 2015-03-23 03:49:03 +0000 |
---|---|---|
committer | <> | 2015-03-25 17:06:51 +0000 |
commit | fb040ea36cb8e2158ccd9100600652f94ae90af1 (patch) | |
tree | dba72a74e84a997c23fa0af7c07a4d831be2deb7 /doc/syntax/patch.nanorc | |
parent | 8b74abeb02c01ddc768c465a826360cf33cec063 (diff) | |
download | nano-tarball-fb040ea36cb8e2158ccd9100600652f94ae90af1.tar.gz |
Imported from /home/lorry/working-area/delta_nano-tarball/nano-2.4.0.tar.gz.HEADnano-2.4.0master
Diffstat (limited to 'doc/syntax/patch.nanorc')
-rw-r--r-- | doc/syntax/patch.nanorc | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/doc/syntax/patch.nanorc b/doc/syntax/patch.nanorc index a788b35..f5c1dd5 100644 --- a/doc/syntax/patch.nanorc +++ b/doc/syntax/patch.nanorc @@ -1,10 +1,21 @@ ## Here is an example for patch files. -## + syntax "patch" "\.(patch|diff)$" +magic "diff output text" + +# Added lines. color brightgreen "^\+.*" -color green "^\+\+\+.*" +# 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.*" |