From 0bff84ef9ce2a198e536a7bb3465e326c4bf1b54 Mon Sep 17 00:00:00 2001 From: Chris Allegretta Date: Sun, 22 Nov 2009 16:36:53 +0000 Subject: [PATCH] 2009-11-22 Mike Frysinger * 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 | 3 +++ doc/syntax/gentoo.nanorc | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 6df1cf97..f4991b32 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2009-11-22 Mike Frysinger + * doc/syntax/gentoo.nanorc: Tweak comment highlighting. + GNU nano 2.1.99pre2 - 2009.11.21 2009-11-21 Chris Allegretta * rcfile.c: Add unbinding keyword, fixes Savannah bug 22852 reported by frankd. diff --git a/doc/syntax/gentoo.nanorc b/doc/syntax/gentoo.nanorc index 319b81be..2ad15971 100644 --- a/doc/syntax/gentoo.nanorc +++ b/doc/syntax/gentoo.nanorc @@ -27,7 +27,7 @@ color brightblue "\<(doc|ins|exe)?into\>" "\<(f|games)(owners|perms)\>" "\<(exe| ## Highlight common commands used in ebuilds color blue "\" "\<(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! -- 2.39.5