]> git.wh0rd.org Git - nano.git/commitdiff
2009-11-22 Mike Frysinger <vapier@gentoo.org>
authorChris Allegretta <chrisa@asty.org>
Sun, 22 Nov 2009 16:36:53 +0000 (16:36 +0000)
committerChris Allegretta <chrisa@asty.org>
Sun, 22 Nov 2009 16:36:53 +0000 (16:36 +0000)
        * doc/syntax/gentoo.nanorc: Tweak comment highlighting.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4438 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

ChangeLog
doc/syntax/gentoo.nanorc

index 6df1cf97ef951ad316f57ec3189e87d9ede932af..f4991b3298d2c9fba224705e512a4eedc56fc337 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2009-11-22 Mike Frysinger <vapier@gentoo.org>
+       * doc/syntax/gentoo.nanorc: Tweak comment highlighting.
+
 GNU nano 2.1.99pre2 - 2009.11.21
 2009-11-21 Chris Allegretta <chrisa@asty.org>
        * rcfile.c: Add unbinding keyword, fixes Savannah bug 22852 reported by frankd.
index 319b81bec426c80d38266731810d8b5bc54c97fd..2ad159714c63a8529d3e655778b4873a87dd3bc8 100644 (file)
@@ -27,7 +27,7 @@ color brightblue "\<(doc|ins|exe)?into\>" "\<(f|games)(owners|perms)\>" "\<(exe|
 ## Highlight common commands used in ebuilds
 color blue "\<make\>" "\<(awk|cat|cd|chmod|chown|cp|echo|env|export|find|e?grep|ln|mkdir|mv|rm|sed|set|tar|touch|unset|xargs)\>"
 ## Highlight comments (doesnt work that well)
-color yellow "#.*$"
+color yellow "(^|[[:space:]])#.*$"
 ## Highlight strings (doesnt work that well)
 color brightyellow ""(\\.|[^\"])*"" "'(\\.|[^'])*'"
 ## Trailing space is bad!