2016-03-02 20:49:58 +01:00
|
|
|
syntax "AWK" "\.awk$"
|
2013-06-02 12:48:33 +02:00
|
|
|
header "^#!.*bin/(env +)?awk( |$)"
|
|
|
|
|
|
|
|
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:]]+$"
|
2015-10-24 11:52:47 +02:00
|
|
|
color ,red " + +| + +"
|