nano

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

commit d7e86657823c1560d211063c0143e4c4ccb10b6b
parent 7c86c1a18585053b51ae41c01eb81ce34ce12442
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Thu, 18 Jul 2024 16:10:12 +0200

syntax: awk: rewrite a regex more densely, and add the missing ~ operator

Also, improve the comment.

Diffstat:
Msyntax/awk.nanorc | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/syntax/awk.nanorc b/syntax/awk.nanorc @@ -15,8 +15,8 @@ color red "\<(FILENAME|FNR|FS|IGNORECASE|LINT|NF|NR|OFMT|OFS|ORS)\>" color red "\<(PROCINFO|RS|RT|RSTART|RLENGTH|SUBSEP|TEXTDOMAIN)\>" # Function declarations and special patterns. color brightgreen "\<(function|extension|BEGIN|END)\>" -# Operators. -color green "\{|\}|\(|\)|\;|\[|\]|\\|<|>|!|=|&|\+|-|\*|%|/|\?|:|\^|\|" +# Operators and brackets/braces/slashes/parentheses. +color green "[][!%&()*+/:;<=>?\^{|}~-]" # Flow control. color brightyellow "\<(for|if|while|do|else|in|delete|exit)\>" color brightyellow "\<(break|continue|return)\>"