nano

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

commit 44836e77bef6a526801f4eaf8a9d88e49aa39f12
parent 5cec57719bf14d0259c9d31d865805161a400194
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Tue,  7 Dec 2021 12:40:24 +0100

syntax: nanorc: colorize a trailing comment when it begins with non-hex

That is: colorize text after a blank-plus-hash as a comment when there
is at least one non-hexadecimal character among the first three.

This relaxes the demand that a trailing comment should have a blank
after the hash too, as implemented by commit 90946c5e two weeks ago.

Diffstat:
Msyntax/nanorc.nanorc | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/syntax/nanorc.nanorc b/syntax/nanorc.nanorc @@ -33,7 +33,7 @@ color magenta "^[[:blank:]]*i?color\>|[[:blank:]](start=|end=)" color bold,pink "[[:cntrl:]]" # Comments -color brightblue "^[[:blank:]]*#.*|[[:blank:]]#[[:blank:]].*" +color brightblue "^[[:blank:]]*#.*|[[:blank:]]#.{0,2}[^[:xdigit:]].*" color cyan "^[[:blank:]]*##.*" # Trailing whitespace