nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit fab4d0afcb860d77391f87c0d9cdba36b6a1c2f0
parent d9e42cb2741126b0eada3ad9ce82215bf0331700
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Wed,  3 Nov 2021 17:34:23 +0100

tweaks: reshuffle a coloring rule, to have related ones together

(We don't want the rule for control codes after the rule for comments,
because then control codes in commented-out binds would stand out.)

Diffstat:
Msyntax/nanorc.nanorc | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/syntax/nanorc.nanorc b/syntax/nanorc.nanorc @@ -22,12 +22,12 @@ color green "^[[:blank:]]*((un)?(bind|set)|include|syntax|header|magic|comment|f # Strings color brightmagenta "[[:blank:]](start=)?".+"" -# Control codes -color bold,pink "[[:cntrl:]]" - # Color commands color magenta "^[[:blank:]]*i?color\>|[[:blank:]](start=|end=)" +# Control codes +color bold,pink "[[:cntrl:]]" + # Comments color brightblue "(^|[[:blank:]]+)#.*" color cyan "^[[:blank:]]*##.*"