From 8a2c245d2c1f6ee9080def215700a36cc2287978 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Wed, 26 Feb 2014 21:42:53 +0000 Subject: [PATCH] Colouring trailing whitespace in Makefiles, patch by Mike Frysinger. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4617 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- ChangeLog | 1 + doc/syntax/makefile.nanorc | 2 ++ 2 files changed, 3 insertions(+) diff --git a/ChangeLog b/ChangeLog index 8b2a8231..7cb829c4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,7 @@ * doc/syntax/gentoo.nanorc - Update to newer EAPIs, and fold in updated shell changes too. Much of this is based on work by Davide Pesavento . + * doc/syntax/makefile.nanorc: Highlight trailing whitespace. 2014-02-26 Benno Schulenberg * src/global.c (shortcut_init) - Put PageUp and PageDown diff --git a/doc/syntax/makefile.nanorc b/doc/syntax/makefile.nanorc index bac672ac..f81d1e5a 100644 --- a/doc/syntax/makefile.nanorc +++ b/doc/syntax/makefile.nanorc @@ -7,3 +7,5 @@ color magenta "\<(if|ifeq|else|endif)\>" color blue "\$+[{(][a-zA-Z0-9_-]+[})]" color brightblue "^[^ ]+:" color green "#.*$" +## Trailing whitespace. +color ,green "[[:space:]]+$"