nano

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

commit 27af34a853b696f447e83df3699f075142ff5071
parent abafc2ba149edd8ddae67e1c8ce7afeec320fb51
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Fri, 10 Dec 2021 12:32:17 +0100

syntax: default: colorize comments as one of the last things

So that URLs in comments don't get specially colored.

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

diff --git a/syntax/default.nanorc b/syntax/default.nanorc @@ -4,9 +4,6 @@ syntax default comment "#" -# Comments. -color cyan "^[[:blank:]]*#.*" - # Spaces in front of tabs. color ,red " + +" @@ -26,5 +23,8 @@ color lightblue "\<https?://\S+\.\S+[^[:space:],.)]" # Bracketed captions in certain config files. color brightgreen "^\[[^][]+\]$" +# Comments. +color cyan "^[[:blank:]]*#.*" + # Control codes. color orange "[[:cntrl:]]"