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'"\?\\]"