nano-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Nano-devel] [patch] add trailing space highlighting to c/asm/sh


From: Mike Frysinger
Subject: [Nano-devel] [patch] add trailing space highlighting to c/asm/sh
Date: Wed, 11 Apr 2007 07:22:35 -0400
User-agent: KMail/1.9.6

this copies the trailing space highlight stuff that java includes at the 
moment to the c/asm/sh files ... i find it handy ...
-mike

Attachment: pgpaM_BHA5jlu.pgp
Description: PGP signature

Index: doc/syntax/asm.nanorc
===================================================================
RCS file: /cvsroot/nano/nano/doc/syntax/asm.nanorc,v
retrieving revision 1.1
diff -u -p -r1.1 asm.nanorc
--- doc/syntax/asm.nanorc       1 Jun 2006 17:23:28 -0000       1.1
+++ doc/syntax/asm.nanorc       11 Apr 2007 11:20:31 -0000
@@ -13,3 +13,5 @@ color brightyellow start=""(\\.|[^"])*\\
 ## Highlight comments
 color brightblue "//.*"
 color brightblue start="/\*" end="\*/"
+## Trailing space
+color ,green "[[:space:]]+$"
Index: doc/syntax/c.nanorc
===================================================================
RCS file: /cvsroot/nano/nano/doc/syntax/c.nanorc,v
retrieving revision 1.7
diff -u -p -r1.7 c.nanorc
--- doc/syntax/c.nanorc 2 Oct 2006 17:01:58 -0000       1.7
+++ doc/syntax/c.nanorc 11 Apr 2007 11:20:31 -0000
@@ -25,3 +25,6 @@ color brightyellow start=""(\\.|[^"])*\\
 ## Comment highlighting
 color brightblue "//.*"
 color brightblue start="/\*" end="\*/"
+
+## Trailing space
+color ,green "[[:space:]]+$"
Index: doc/syntax/sh.nanorc
===================================================================
RCS file: /cvsroot/nano/nano/doc/syntax/sh.nanorc,v
retrieving revision 1.3
diff -u -p -r1.3 sh.nanorc
--- doc/syntax/sh.nanorc        8 Jun 2006 12:49:57 -0000       1.3
+++ doc/syntax/sh.nanorc        11 Apr 2007 11:20:31 -0000
@@ -10,3 +10,4 @@ color brightblue "\<(cat|cd|chmod|chown|
 icolor brightred "address@hidden"
 color cyan "(^|[[:space:]])#.*$"
 color brightyellow ""(\\.|[^"])*"" "'(\\.|[^'])*'"
+color ,green "[[:space:]]+$"

reply via email to

[Prev in Thread] Current Thread [Next in Thread]