diff --git a/ChangeLog b/ChangeLog
index 8b2a823168145e95240eb6172cdbf2c0ef73da33..7cb829c43f81745176463937f6039b92c1d66fad 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 <pesa@gentoo.org>.
+	* doc/syntax/makefile.nanorc: Highlight trailing whitespace.
 
 2014-02-26  Benno Schulenberg  <bensberg@justemail.net>
 	* src/global.c (shortcut_init) -  Put PageUp and PageDown
diff --git a/doc/syntax/makefile.nanorc b/doc/syntax/makefile.nanorc
index bac672acbefeaa709af63164ad4704d055ccd7fa..f81d1e5aee57f62d5ee8b2b3dd2fc2d1e4e3dac2 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:]]+$"