From cd5d7faa4e453bbd48b87add49e37b3c5c590cdb Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 20 Feb 2017 13:07:50 -0500 Subject: [PATCH] syntax: gentoo: flag mixed whitespace --- syntax/gentoo.nanorc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/syntax/gentoo.nanorc b/syntax/gentoo.nanorc index 046ed517..d3e8f352 100644 --- a/syntax/gentoo.nanorc +++ b/syntax/gentoo.nanorc @@ -43,6 +43,8 @@ color yellow "(^|[[:space:]])#.*$" color brightyellow ""(\\.|[^\"])*"" "'(\\.|[^'])*'" ## Trailing space is bad! color ,green "[[:space:]]+$" +## Mixed whitespace is also bad. +color ,green " " ## Here is an example for Portage control files. ## @@ -66,3 +68,5 @@ color brightmagenta "^[[:space:]]*(=|~|<|<=|>|>=)" color yellow "#.*$" ## Trailing space is bad! color ,green "[[:space:]]+$" +## Mixed whitespace is also bad. +color ,green " "