From 1b25243ee2fea0fa771550500e1c1b7fa0c243ad Mon Sep 17 00:00:00 2001 From: Joerg Stoever Date: Fri, 14 Aug 2020 13:04:10 +0200 Subject: [PATCH] Add a red highlight to YAML lines with trailing whitespace --- yaml.nanorc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/yaml.nanorc b/yaml.nanorc index b079c72..f202cd8 100644 --- a/yaml.nanorc +++ b/yaml.nanorc @@ -19,3 +19,6 @@ color brightwhite ":(\s|\t|$)" # Comments color brightblue "(^|[[:space:]])#.*$" + +# Trailing whitespace +color ,red "[[:space:]]+$"