28 lines
1.2 KiB
Plaintext
28 lines
1.2 KiB
Plaintext
syntax "AWK" "\.awk$"
|
|
header "^#!.*bin/(env +)?awk( |$)"
|
|
magic "awk script"
|
|
comment "#"
|
|
|
|
color brightyellow "\$[A-Za-z0-9_!@#$*?-]+"
|
|
color brightyellow "\<(ARGC|ARGIND|ARGV|BINMODE|CONVFMT|ENVIRON|ERRNO|FIELDWIDTHS)\>"
|
|
color brightyellow "\<(FILENAME|FNR|FS|IGNORECASE|LINT|NF|NR|OFMT|OFS|ORS)\>"
|
|
color brightyellow "\<(PROCINFO|RS|RT|RSTART|RLENGTH|SUBSEP|TEXTDOMAIN)\>"
|
|
color brightblue "\<(function|extension|BEGIN|END)\>"
|
|
color red "[-+*/%^|!=&<>?;:]|\\|\[|\]"
|
|
color cyan "\<(for|if|while|do|else|in|delete|exit)\>"
|
|
color cyan "\<(break|continue|return)\>"
|
|
color brightblue "\<(close|getline|next|nextfile|print|printf|system|fflush)\>"
|
|
color brightblue "\<(atan2|cos|exp|int|log|rand|sin|sqrt|srand)\>"
|
|
color brightblue "\<(asort|asorti|gensub|gsub|index|length|match)\>"
|
|
color brightblue "\<(split|sprintf|strtonum|sub|substr|tolower|toupper)\>"
|
|
color brightblue "\<(mktime|strftime|systime)\>"
|
|
color brightblue "\<(and|compl|lshift|or|rshift|xor)\>"
|
|
color brightblue "\<(bindtextdomain|dcgettext|dcngettext)\>"
|
|
color magenta "/.*[^\]/"
|
|
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
|
|
color magenta "\\."
|
|
color brightblack "(^|[[:space:]])#([^{].*)?$"
|
|
color brightwhite,cyan "TODO:?"
|
|
color ,green "[[:space:]]+$"
|
|
color ,red " + +| + +"
|