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.
This commit is contained in:
parent
4b03cc60cf
commit
7c86c1a185
@ -16,7 +16,7 @@ color red "\<(PROCINFO|RS|RT|RSTART|RLENGTH|SUBSEP|TEXTDOMAIN)\>"
|
|||||||
# Function declarations and special patterns.
|
# Function declarations and special patterns.
|
||||||
color brightgreen "\<(function|extension|BEGIN|END)\>"
|
color brightgreen "\<(function|extension|BEGIN|END)\>"
|
||||||
# Operators.
|
# Operators.
|
||||||
color green "\{|\}|\(|\)|\;|\[|\]|\\|<|>|!|=|&|\+|-|\*|%|/|\?:|\^|\|"
|
color green "\{|\}|\(|\)|\;|\[|\]|\\|<|>|!|=|&|\+|-|\*|%|/|\?|:|\^|\|"
|
||||||
# Flow control.
|
# Flow control.
|
||||||
color brightyellow "\<(for|if|while|do|else|in|delete|exit)\>"
|
color brightyellow "\<(for|if|while|do|else|in|delete|exit)\>"
|
||||||
color brightyellow "\<(break|continue|return)\>"
|
color brightyellow "\<(break|continue|return)\>"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user