nano

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

commit 7c86c1a18585053b51ae41c01eb81ce34ce12442
parent 4b03cc60cf13d4e98b88b0289c8e4b749d6b9e92
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Thu, 18 Jul 2024 12:55:30 +0200

syntax: awk: add a missing "|" between "\?" and ":"

The "\?" and ":" are meant to match the ? and : in this construct:

    condition ? thenthis : otherwisethis

The missing "|" seems to have been a typo.

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

diff --git a/syntax/awk.nanorc b/syntax/awk.nanorc @@ -16,7 +16,7 @@ color red "\<(PROCINFO|RS|RT|RSTART|RLENGTH|SUBSEP|TEXTDOMAIN)\>" # Function declarations and special patterns. color brightgreen "\<(function|extension|BEGIN|END)\>" # Operators. -color green "\{|\}|\(|\)|\;|\[|\]|\\|<|>|!|=|&|\+|-|\*|%|/|\?:|\^|\|" +color green "\{|\}|\(|\)|\;|\[|\]|\\|<|>|!|=|&|\+|-|\*|%|/|\?|:|\^|\|" # Flow control. color brightyellow "\<(for|if|while|do|else|in|delete|exit)\>" color brightyellow "\<(break|continue|return)\>"