nano

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

commit 4ac932bd21070f9b1dc0eb6fc569502d151863e8
parent f9468fa987413756acd3beec8828b15c059b8954
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Fri, 15 Oct 2021 10:15:48 +0200

syntaxes: drop three redundant end-of-line anchors

Also fold two regexes into one, for conciseness.

Diffstat:
Msyntax/awk.nanorc | 2+-
Msyntax/po.nanorc | 2+-
Msyntax/texinfo.nanorc | 4++--
3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/syntax/awk.nanorc b/syntax/awk.nanorc @@ -31,7 +31,7 @@ color magenta "\<(bindtextdomain|dcgettext|dcngettext)\>" # Strings. color brightyellow "<[^= ]*>" ""(\\.|[^"])*"" # Comments. -color brightblue "(^|[[:blank:]])#.*$" +color brightblue "(^|[[:blank:]])#.*" # Trailing whitespace. color ,green "[[:space:]]+$" diff --git a/syntax/po.nanorc b/syntax/po.nanorc @@ -7,7 +7,7 @@ syntax po "\.pot?$" comment "#" # Comments. -color green "^#.*$" +color green "^#.*" color yellow "Copyright|\(C\)" # Header fields. color brightred "^"X-Bugs:.*"$" diff --git a/syntax/texinfo.nanorc b/syntax/texinfo.nanorc @@ -9,10 +9,10 @@ magic "Texinfo source" comment "@c " # Command arguments, trailing and enclosed. -color cyan "^@[a-z]+[[:space:]]+.*$" +color cyan "^@[a-z]+[[:space:]]+.*" color brightmagenta "@[a-zA-Z]+\{[^}]*\}" # Commands themselves. -color yellow "@[a-zA-Z]+\{?" "\}" +color yellow "@[a-zA-Z]+\{?|\}" # Menu items. color brightred "^\*[[:space:]]+.*::.*"