From 7c86c1a18585053b51ae41c01eb81ce34ce12442 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Thu, 18 Jul 2024 12:55:30 +0200 Subject: [PATCH] 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. --- syntax/awk.nanorc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syntax/awk.nanorc b/syntax/awk.nanorc index e5d1af05..ca518f64 100644 --- 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)\>"