awk.nanorc 1.2 KB

1234567891011121314151617181920212223242526
  1. syntax "awk" "\.awk$"
  2. header "^#!.*bin/(env +)?awk( |$)"
  3. color brightyellow "\$[A-Za-z0-9_!@#$*?-]+"
  4. color brightyellow "\<(ARGC|ARGIND|ARGV|BINMODE|CONVFMT|ENVIRON|ERRNO|FIELDWIDTHS)\>"
  5. color brightyellow "\<(FILENAME|FNR|FS|IGNORECASE|LINT|NF|NR|OFMT|OFS|ORS)\>"
  6. color brightyellow "\<(PROCINFO|RS|RT|RSTART|RLENGTH|SUBSEP|TEXTDOMAIN)\>"
  7. color brightblue "\<(function|extension|BEGIN|END)\>"
  8. color red "[-+*/%^|!=&<>?;:]|\\|\[|\]"
  9. color cyan "\<(for|if|while|do|else|in|delete|exit)\>"
  10. color cyan "\<(break|continue|return)\>"
  11. color brightblue "\<(close|getline|next|nextfile|print|printf|system|fflush)\>"
  12. color brightblue "\<(atan2|cos|exp|int|log|rand|sin|sqrt|srand)\>"
  13. color brightblue "\<(asort|asorti|gensub|gsub|index|length|match)\>"
  14. color brightblue "\<(split|sprintf|strtonum|sub|substr|tolower|toupper)\>"
  15. color brightblue "\<(mktime|strftime|systime)\>"
  16. color brightblue "\<(and|compl|lshift|or|rshift|xor)\>"
  17. color brightblue "\<(bindtextdomain|dcgettext|dcngettext)\>"
  18. color magenta "/.*[^\]/"
  19. color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
  20. color magenta "\\."
  21. color brightblack "(^|[[:space:]])#([^{].*)?$"
  22. color brightwhite,cyan "TODO:?"
  23. color ,green "[[:space:]]+$"
  24. color ,red " + +| + +"