summaryrefslogtreecommitdiff
path: root/doc/syntax/awk.nanorc
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@baserock.org>2015-03-23 03:49:03 +0000
committer <>2015-03-25 17:06:51 +0000
commitfb040ea36cb8e2158ccd9100600652f94ae90af1 (patch)
treedba72a74e84a997c23fa0af7c07a4d831be2deb7 /doc/syntax/awk.nanorc
parent8b74abeb02c01ddc768c465a826360cf33cec063 (diff)
downloadnano-tarball-fb040ea36cb8e2158ccd9100600652f94ae90af1.tar.gz
Imported from /home/lorry/working-area/delta_nano-tarball/nano-2.4.0.tar.gz.HEADnano-2.4.0master
Diffstat (limited to 'doc/syntax/awk.nanorc')
-rw-r--r--doc/syntax/awk.nanorc28
1 files changed, 13 insertions, 15 deletions
diff --git a/doc/syntax/awk.nanorc b/doc/syntax/awk.nanorc
index 696ab6a..bfc6387 100644
--- a/doc/syntax/awk.nanorc
+++ b/doc/syntax/awk.nanorc
@@ -1,23 +1,25 @@
## Here is an example for awk.
-##
+
syntax "awk" "\.awk$"
-## records
+magic "awk.*script text"
+
+# Records.
icolor brightred "\$[0-9A-Z_!@#$*?-]+"
-## awk-set variables
+# 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
+# Function declarations and special patterns.
color brightgreen "\<(function|extension|BEGIN|END)\>"
-## operators
+# Operators.
color green "(\{|\}|\(|\)|\;|\]|\[|\\|<|>|!|=|&|\+|-|\*|%|/|\?:|\^|\|)"
-## flow control
+# Flow control.
color brightyellow "\<(for|if|while|do|else|in|delete|exit)\>"
color brightyellow "\<(break|continue|return)\>"
-## I/O statements
+# I/O statements.
color brightgreen "\<(close|getline|next|nextfile|print|printf)\>"
color brightgreen "\<(system|fflush)\>"
-## standard functions
+# 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)\>"
@@ -25,14 +27,10 @@ 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.
+# Strings.
color brightyellow "<[^= ]*>" ""(\\.|[^"])*""
-
-## Comment highlighting
+# Comments.
color brightblue "(^|[[:space:]])#.*$"
-## Trailing whitespace
+# Trailing whitespace.
color ,green "[[:space:]]+$"