doc/syntax/asm.nanorc, doc/syntax/c.nanorc, and doc/syntax/sh.nanorc,
copy the regex that highlights trailing whitespace from
doc/syntax/java.nanorc to these files, as it's also useful in them
git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_2_0_branch/nano@4071
35c25a1d-7b9e-4130-9fde-
d3aeb78583b8
CVS code -
+- doc/syntax/asm.nanorc, doc/syntax/c.nanorc, doc/syntax/sh.nanorc:
+ - Copy the regex that highlights trailing whitespace from
+ doc/syntax/java.nanorc to these files, as it's also useful in
+ them. (Mike Frysinger, minor tweaks by DLR)
GNU nano 2.0.4 - 2007.04.06
- winio.c:
## Highlight comments
color brightblue "//.*"
color brightblue start="/\*" end="\*/"
+## Highlight trailing whitespace
+color ,green "[[:space:]]+$"
## Comment highlighting
color brightblue "//.*"
color brightblue start="/\*" end="\*/"
+
+## Trailing whitespace
+color ,green "[[:space:]]+$"
icolor brightred "\$\{?[0-9A-Z_!@#$*?-]+\}?"
color cyan "(^|[[:space:]])#.*$"
color brightyellow ""(\\.|[^"])*"" "'(\\.|[^'])*'"
+color ,green "[[:space:]]+$"