From d3d7b097385a5672f5327938e17570e50d5cf334 Mon Sep 17 00:00:00 2001 From: Elof Date: Tue, 6 Dec 2016 22:04:38 +0100 Subject: [PATCH] Color trailing whitespace green --- js.nanorc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js.nanorc b/js.nanorc index 295758b..65cf389 100644 --- a/js.nanorc +++ b/js.nanorc @@ -38,6 +38,9 @@ color red "\<(true|false)\>" color brightyellow "L?\"(\\"|[^"])*\"" color brightyellow "L?'(\'|[^'])*'" +## Trailing spaces +color ,green "[[:space:]]+$" + ## Escapes color red "\\[0-7][0-7]?[0-7]?|\\x[0-9a-fA-F]+|\\[bfnrt'"\?\\]"