diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2011-04-25 12:22:55 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2011-04-25 12:22:55 -0400 |
commit | c9935112c8b66e23d2acd7584fecd8e99a281b14 (patch) | |
tree | 218ebbeb47e5a77620de5af597833522304d92c3 /share/nano/awk.nanorc | |
parent | 9b77ce1433aa790e174947dc33745926965ee4a1 (diff) |
.compizsnap, .nanorc
Track .compizsnap/* files (hurpdurp), only tracked the directory before.
Use *.nanorc files from the nano 2.2.6 distribution.
Diffstat (limited to 'share/nano/awk.nanorc')
-rw-r--r-- | share/nano/awk.nanorc | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/share/nano/awk.nanorc b/share/nano/awk.nanorc new file mode 100644 index 0000000..696ab6a --- /dev/null +++ b/share/nano/awk.nanorc @@ -0,0 +1,38 @@ +## Here is an example for awk. +## +syntax "awk" "\.awk$" +## records +icolor brightred "\$[0-9A-Z_!@#$*?-]+" +## awk-set variables +color red "\<(ARGC|ARGIND|ARGV|BINMODE|CONVFMT|ENVIRON|ERRNO|FIELDWIDTHS)\>" +color red "\<(FILENAME|FNR|FS|IGNORECASE|LINT|NF|NR|OFMT|OFS|ORS)\>" +color red "\<(PROCINFO|RS|RT|RSTART|RLENGTH|SUBSEP|TEXTDOMAIN)\>" +## function declarations and special patterns +color brightgreen "\<(function|extension|BEGIN|END)\>" +## operators +color green "(\{|\}|\(|\)|\;|\]|\[|\\|<|>|!|=|&|\+|-|\*|%|/|\?:|\^|\|)" +## flow control +color brightyellow "\<(for|if|while|do|else|in|delete|exit)\>" +color brightyellow "\<(break|continue|return)\>" +## I/O statements +color brightgreen "\<(close|getline|next|nextfile|print|printf)\>" +color brightgreen "\<(system|fflush)\>" +## standard functions +color magenta "\<(atan2|cos|exp|int|log|rand|sin|sqrt|srand)\>" +color magenta "\<(asort|asorti|gensub|gsub|index|length|match)\>" +color magenta "\<(split|sprintf|strtonum|sub|substr|tolower|toupper)\>" +color magenta "\<(mktime|strftime|systime)\>" +color magenta "\<(and|compl|lshift|or|rshift|xor)\>" +color magenta "\<(bindtextdomain|dcgettext|dcngettext)\>" + +## +## String highlighting. You will in general want your comments and +## strings to come last, because syntax highlighting rules will be +## applied in the order they are read in. +color brightyellow "<[^= ]*>" ""(\\.|[^"])*"" + +## Comment highlighting +color brightblue "(^|[[:space:]])#.*$" + +## Trailing whitespace +color ,green "[[:space:]]+$" |