Showing trailing whitespace on added lines in patches and diffs.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4897 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
52e3533e99
commit
3edcfd283b
|
@ -1,5 +1,6 @@
|
||||||
2014-05-16 Benno Schulenberg <bensberg@justemail.net>
|
2014-05-16 Benno Schulenberg <bensberg@justemail.net>
|
||||||
* src/text.c, src/winio.c: Remove some more double spaces.
|
* src/text.c, src/winio.c: Remove some more double spaces.
|
||||||
|
* doc/syntax/patch.nanorc: Show trailing whitespace on added lines.
|
||||||
|
|
||||||
2014-05-16 David Lawrence Ramsey <pooka109@gmail.com>
|
2014-05-16 David Lawrence Ramsey <pooka109@gmail.com>
|
||||||
* src/color.c, src/cut.c, src/text.c: Tweak some whitespace.
|
* src/color.c, src/cut.c, src/text.c: Tweak some whitespace.
|
||||||
|
|
|
@ -1,11 +1,21 @@
|
||||||
## Here is an example for patch files.
|
## Here is an example for patch files.
|
||||||
##
|
|
||||||
syntax "patch" "\.(patch|diff)$"
|
syntax "patch" "\.(patch|diff)$"
|
||||||
magic "diff output text"
|
magic "diff output text"
|
||||||
|
|
||||||
|
# Added lines.
|
||||||
color brightgreen "^\+.*"
|
color brightgreen "^\+.*"
|
||||||
color green "^\+\+\+.*"
|
# Show trailing whitespace only on added lines.
|
||||||
|
color ,green "[[:space:]]+$"
|
||||||
|
# Context lines.
|
||||||
color brightblue "^ .*"
|
color brightblue "^ .*"
|
||||||
|
# Deleted lines.
|
||||||
color brightred "^-.*"
|
color brightred "^-.*"
|
||||||
|
|
||||||
|
# File names and dates.
|
||||||
color red "^---.*"
|
color red "^---.*"
|
||||||
|
color green "^\+\+\+.*"
|
||||||
|
# Line numbers.
|
||||||
color brightyellow "^@@.*"
|
color brightyellow "^@@.*"
|
||||||
|
# Header lines.
|
||||||
color magenta "^diff.*"
|
color magenta "^diff.*"
|
||||||
|
|
Loading…
Reference in New Issue