[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Nano-devel] [PATCH] gentoo.nanorc: improve comment highlighting
From: |
Mike Frysinger |
Subject: |
[Nano-devel] [PATCH] gentoo.nanorc: improve comment highlighting |
Date: |
Thu, 15 Oct 2009 22:11:17 -0400 |
Take a page from the comment handling in sh.nanorc.
Signed-off-by: Mike Frysinger <address@hidden>
---
doc/syntax/gentoo.nanorc | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/doc/syntax/gentoo.nanorc b/doc/syntax/gentoo.nanorc
index 319b81b..2ad1597 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 "\<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!
--
1.6.5.rc2
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Nano-devel] [PATCH] gentoo.nanorc: improve comment highlighting,
Mike Frysinger <=