From c448a6da4594b4775d8c6330146634b3a15ab02d Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Wed, 11 Apr 2007 22:18:16 +0000 Subject: [PATCH] per Mike Frysinger's patch with a few tweaks of mine, in 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 --- ChangeLog | 4 ++++ doc/syntax/asm.nanorc | 2 ++ doc/syntax/c.nanorc | 3 +++ doc/syntax/sh.nanorc | 1 + 4 files changed, 10 insertions(+) diff --git a/ChangeLog b/ChangeLog index 2a3842b9..114faac4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,8 @@ 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: diff --git a/doc/syntax/asm.nanorc b/doc/syntax/asm.nanorc index 7668ffee..e94ee906 100644 --- a/doc/syntax/asm.nanorc +++ b/doc/syntax/asm.nanorc @@ -13,3 +13,5 @@ color brightyellow start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*"" ## Highlight comments color brightblue "//.*" color brightblue start="/\*" end="\*/" +## Highlight trailing whitespace +color ,green "[[:space:]]+$" diff --git a/doc/syntax/c.nanorc b/doc/syntax/c.nanorc index cc0482ce..45da48b7 100644 --- a/doc/syntax/c.nanorc +++ b/doc/syntax/c.nanorc @@ -25,3 +25,6 @@ color brightyellow start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*"" ## Comment highlighting color brightblue "//.*" color brightblue start="/\*" end="\*/" + +## Trailing whitespace +color ,green "[[:space:]]+$" diff --git a/doc/syntax/sh.nanorc b/doc/syntax/sh.nanorc index 097f4852..f540f1b7 100644 --- a/doc/syntax/sh.nanorc +++ b/doc/syntax/sh.nanorc @@ -10,3 +10,4 @@ color brightblue "\<(cat|cd|chmod|chown|cp|echo|env|export|grep|install|let|ln|m icolor brightred "\$\{?[0-9A-Z_!@#$*?-]+\}?" color cyan "(^|[[:space:]])#.*$" color brightyellow ""(\\.|[^"])*"" "'(\\.|[^'])*'" +color ,green "[[:space:]]+$" -- 2.39.5