diff --git a/apacheconf.nanorc b/apacheconf.nanorc index ad08240..f1325e6 100644 --- a/apacheconf.nanorc +++ b/apacheconf.nanorc @@ -42,3 +42,6 @@ color brightcyan ")" color green "\"(\\.|[^\"])*\"" color white "#.*" + +## Trailing spaces +color ,green "[[:space:]]+$" diff --git a/conf.nanorc b/conf.nanorc index 0cfb890..cf9f58a 100644 --- a/conf.nanorc +++ b/conf.nanorc @@ -7,3 +7,5 @@ icolor white ""(\\.|[^"])*"" ## Comments icolor brightblue "^[[:space:]]*#.*$" icolor cyan "^[[:space:]]*##.*$" +## Trailing spaces +color ,green "[[:space:]]+$" diff --git a/css.nanorc b/css.nanorc index 69c844b..3e6b83c 100644 --- a/css.nanorc +++ b/css.nanorc @@ -8,3 +8,6 @@ color brightwhite start=":" end="[;^\{]" color brightblue ":active|:focus|:hover|:link|:visited|:link|:after|:before|$" color brightblue start="\/\*" end="\*\/" color green ";|:|\{|\}" + +## Trailing spaces +color ,green "[[:space:]]+$" diff --git a/cython.nanorc b/cython.nanorc index d1c8df7..0f73704 100644 --- a/cython.nanorc +++ b/cython.nanorc @@ -28,3 +28,6 @@ color cyan start=""""[^"]" end=""""" start="'''[^']" end="'''" # Comment Color color brightblue "#.*$" + +## Trailing spaces +color ,green "[[:space:]]+$" diff --git a/erb.nanorc b/erb.nanorc index 17bfed6..9a581b2 100644 --- a/erb.nanorc +++ b/erb.nanorc @@ -22,3 +22,5 @@ color brightcyan "##[^{].*$" "##$" color green start="<<-?'?EOT'?" end="^EOT" color brightcyan "(XXX|TODO|FIXME|\?\?\?)" +## Trailing spaces +color ,green "[[:space:]]+$" diff --git a/fortran.nanorc b/fortran.nanorc index 7b45e61..2b77e6b 100644 --- a/fortran.nanorc +++ b/fortran.nanorc @@ -48,3 +48,6 @@ icolor cyan "<[^= ]*>" "'(\\.|[^"])*'" ## Comment highlighting icolor brightred "!.*$" "(^[Cc]| [Cc]) .*$" + +## Trailing spaces +color ,green "[[:space:]]+$" diff --git a/haml.nanorc b/haml.nanorc index 6c848e7..3337882 100644 --- a/haml.nanorc +++ b/haml.nanorc @@ -14,3 +14,5 @@ color brightblue "(@|@@)[0-9A-Z_a-z]+" ## Comments color brightcyan "#[^{].*$" "#$" +## Trailing spaces +color ,green "[[:space:]]+$" diff --git a/haskell.nanorc b/haskell.nanorc index 58e817d..2b37ecf 100644 --- a/haskell.nanorc +++ b/haskell.nanorc @@ -29,3 +29,6 @@ color green "--.*" color green start="\{-" end="-\}" color brightred "undefined" + +## Trailing spaces +color ,green "[[:space:]]+$" diff --git a/html.nanorc b/html.nanorc index 32d47d4..dd01965 100644 --- a/html.nanorc +++ b/html.nanorc @@ -6,3 +6,6 @@ color red "&[^;[[:space:]]]*;" color yellow ""[^"]*"|qq\|.*\|" color red "(action|alt|bgcolor|height|href|id|label|longdesc|method|name|onclick|onfocus|onload|onmouseover|rel|size|span|src|style|target|title|type|value|width)=" color magenta start="" + +## Trailing spaces +color ,green "[[:space:]]+$" 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'"\?\\]" diff --git a/markdown.nanorc b/markdown.nanorc index d50cafb..9d3fd9e 100644 --- a/markdown.nanorc +++ b/markdown.nanorc @@ -45,3 +45,6 @@ color yellow "`[^`]*`|^ {4}[^-+*].*" # code blocks color yellow start="^```[^$]" end="^```$" color yellow "^```$" + +## Trailing spaces +color ,green "[[:space:]]+$" diff --git a/ocaml.nanorc b/ocaml.nanorc index 49ba151..f5cd2c7 100644 --- a/ocaml.nanorc +++ b/ocaml.nanorc @@ -23,3 +23,5 @@ color yellow "\<(new|ref|mutable|lazy|assert|raise)\>" color white start="\(\*" end="\*\)" #strings (no multiline handling yet) color brightblack ""[^\"]*"" +## Trailing spaces +color ,green "[[:space:]]+$" diff --git a/perl.nanorc b/perl.nanorc index 3c05ad5..3e629b9 100644 --- a/perl.nanorc +++ b/perl.nanorc @@ -11,3 +11,6 @@ color white "[sm]/.*/" color white start="(^use| = new)" end=";" color green "#.*" color yellow start="<< 'STOP'" end="STOP" + +## Trailing spaces +color ,green "[[:space:]]+$" diff --git a/perl6.nanorc b/perl6.nanorc index 10d39d3..572ef04 100644 --- a/perl6.nanorc +++ b/perl6.nanorc @@ -14,3 +14,6 @@ color white "[sm]/.*/" color brightblue start="(^use| = new)" end=";" color brightgreen "#.*" color brightred start="<" + +## Trailing spaces +color ,green "[[:space:]]+$" diff --git a/xml.nanorc b/xml.nanorc index 47542c6..8ad5a32 100644 --- a/xml.nanorc +++ b/xml.nanorc @@ -9,3 +9,6 @@ color cyan ">" color yellow start="" color yellow start="" color red "&[^;]*;" + +## Trailing spaces +color ,green "[[:space:]]+$"