[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Nano-devel] [PATCH] syntax: gentoo: flag mixed whitespace
From: |
Mike Frysinger |
Subject: |
[Nano-devel] [PATCH] syntax: gentoo: flag mixed whitespace |
Date: |
Mon, 20 Feb 2017 13:07:50 -0500 |
---
syntax/gentoo.nanorc | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/syntax/gentoo.nanorc b/syntax/gentoo.nanorc
index 046ed517a669..d3e8f3527c81 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 " "
--
2.11.1
- [Nano-devel] [PATCH] syntax: gentoo: flag mixed whitespace,
Mike Frysinger <=