]> git.wh0rd.org Git - nano.git/commitdiff
per Mike Frysinger's patch with a few tweaks of mine, in
authorDavid Lawrence Ramsey <pooka109@gmail.com>
Wed, 11 Apr 2007 22:18:16 +0000 (22:18 +0000)
committerDavid Lawrence Ramsey <pooka109@gmail.com>
Wed, 11 Apr 2007 22:18:16 +0000 (22:18 +0000)
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
doc/syntax/asm.nanorc
doc/syntax/c.nanorc
doc/syntax/sh.nanorc

index 2a3842b9f332ef06b4dd4ecfd92fccc8f8fd20f7..114faac43070a96cd5a530d164b78f9bc0c9f04d 100644 (file)
--- 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:
index 7668ffee231662e2a63e25e72ee3bf9928aa78ae..e94ee90666086a3b2f4b7751ff589a714dc0b091 100644 (file)
@@ -13,3 +13,5 @@ color brightyellow start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*""
 ## Highlight comments
 color brightblue "//.*"
 color brightblue start="/\*" end="\*/"
+## Highlight trailing whitespace
+color ,green "[[:space:]]+$"
index cc0482cebe257b8b9f25d30d333bf5fdef178c01..45da48b7139f2f94261257514a9b98f35dbb3fc5 100644 (file)
@@ -25,3 +25,6 @@ color brightyellow start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*""
 ## Comment highlighting
 color brightblue "//.*"
 color brightblue start="/\*" end="\*/"
+
+## Trailing whitespace
+color ,green "[[:space:]]+$"
index 097f4852e9c9d6b1d52c5eac9ff602189a509ee4..f540f1b71d92ca6946186d7a5fc2e5a56f9e5151 100644 (file)
@@ -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:]]+$"