]> git.wh0rd.org Git - nano.git/commitdiff
Highlighting trailing whitespace in Python and nanorc files.
authorBenno Schulenberg <bensberg@justemail.net>
Mon, 24 Mar 2014 12:45:20 +0000 (12:45 +0000)
committerBenno Schulenberg <bensberg@justemail.net>
Mon, 24 Mar 2014 12:45:20 +0000 (12:45 +0000)
Patches by Mike Frysinger.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4670 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

ChangeLog
doc/syntax/nanorc.nanorc
doc/syntax/python.nanorc

index d2f1b48d415a9e8efb75146261cf48f4b7248688..0fb6e2d55249e072a07d49c395b35b6604cc0bb9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,8 @@
        * doc/syntax/gentoo.nanorc - Match more files, add a trailing
        whitespace check, and EAPI=5 updates.  Patch by Mike Frysinger.
        * doc/syntax/javascript.nanorc - New file, by Mike Frysinger.
+       * doc/syntax/{nanorc,python}.nanorc - Highlight trailing
+       whitespace.  Patches by Mike Frysinger <vapier@gentoo.org>.
 
 2014-03-23  Benno Schulenberg  <bensberg@justemail.net>
        * src/rcfile.c (parse_keybinding, parse_unbinding) - Improve a
index 74829e77448cbb29b8082c2538cd60f3ea65d2ac..04b3f8dc5279bb22a7f1e0179098f036b418678a 100644 (file)
@@ -17,3 +17,5 @@ icolor brightmagenta ""(\\.|[^"])*""
 ## Comments
 icolor brightblue "^[[:space:]]*#.*$"
 icolor cyan "^[[:space:]]*##.*$"
+## Trailing whitespace
+color ,green "[[:space:]]+$"
index c24877bd66487e6c499a0b5d099dd67a6505f13f..d329e6186642ac5d008f40f957a8cabd0048bb89 100644 (file)
@@ -9,3 +9,6 @@ color brightgreen "["][^"]*[^\\]["]" "["]{3}.*[^\\]["]{3}"
 color brightgreen start="\"\"\"[^"]" end="\"\"\""
 color brightgreen start="\'\'\'[^']" end="\'\'\'"
 color brightred "#.*$"
+
+## Trailing whitespace
+color ,green "[[:space:]]+$"