47 lines
1.8 KiB
Text
47 lines
1.8 KiB
Text
syntax "awk" "\.awk$"
|
|
header "^#!.*bin/(env +)?awk( |$)"
|
|
|
|
# Resets everything back to plain text coloring.
|
|
# Can be used at the start of each theme file.
|
|
color white "^.*$"
|
|
color blue "\$[A-Za-z0-9_!@#$*?-]+"
|
|
color blue "\<(ARGC|ARGIND|ARGV|BINMODE|CONVFMT|ENVIRON|ERRNO|FIELDWIDTHS)\>"
|
|
color blue "\<(FILENAME|FNR|FS|IGNORECASE|LINT|NF|NR|OFMT|OFS|ORS)\>"
|
|
color blue "\<(PROCINFO|RS|RT|RSTART|RLENGTH|SUBSEP|TEXTDOMAIN)\>"
|
|
color cyan "\<(function|extension|BEGIN|END)\>"
|
|
color yellow "[-+*/%^|!=&<>?;:]|\\|\[|\]"
|
|
color red "\<(for|if|while|do|else|in|delete|exit)\>"
|
|
color red "\<(break|continue|return)\>"
|
|
color cyan "\<(close|getline|next|nextfile|print|printf|system|fflush)\>"
|
|
color cyan "\<(atan2|cos|exp|int|log|rand|sin|sqrt|srand)\>"
|
|
color cyan "\<(asort|asorti|gensub|gsub|index|length|match)\>"
|
|
color cyan "\<(split|sprintf|strtonum|sub|substr|tolower|toupper)\>"
|
|
color cyan "\<(mktime|strftime|systime)\>"
|
|
color cyan "\<(and|compl|lshift|or|rshift|xor)\>"
|
|
color cyan "\<(bindtextdomain|dcgettext|dcngettext)\>"
|
|
color yellow "/.*[^\]/"
|
|
color green ""(\\.|[^"])*"|'(\\.|[^'])*'"
|
|
color yellow "\\."
|
|
color brightblack "(^|[[:space:]])#([^{].*)?$"
|
|
color brightwhite,cyan "\<TODO\>:?"
|
|
color brightwhite,cyan "\<FIXME\>:?"
|
|
color ,red "[[:space:]]+$"
|
|
color brightyellow " + +| + +"
|
|
|
|
# rainbow indent
|
|
color ,brightblack "^[[:space:]]{32}"
|
|
color ,black "^[[:space:]]{30}"
|
|
color ,brightblack "^[[:space:]]{28}"
|
|
color ,black "^[[:space:]]{26}"
|
|
color ,brightblack "^[[:space:]]{24}"
|
|
color ,black "^[[:space:]]{22}"
|
|
color ,brightblack "^[[:space:]]{20}"
|
|
color ,black "^[[:space:]]{18}"
|
|
color ,brightblack "^[[:space:]]{16}"
|
|
color ,black "^[[:space:]]{14}"
|
|
color ,brightblack "^[[:space:]]{12}"
|
|
color ,black "^[[:space:]]{10}"
|
|
color ,brightblack "^[[:space:]]{8}"
|
|
color ,black "^[[:space:]]{6}"
|
|
color ,brightblack "^[[:space:]]{4}"
|
|
color ,black "^[[:space:]]{2}"
|