diff options
author | Mike Frysinger <vapier@gentoo.org> | 2008-05-10 10:23:39 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2008-05-10 10:23:39 +0000 |
commit | bda902d5b281819ae778cff0d61c5efcc874d850 (patch) | |
tree | 25f05bd5ff1a9f9537654f08dd5badc8b80b9578 /app-editors/nano/files | |
parent | old (diff) | |
download | gentoo-2-bda902d5b281819ae778cff0d61c5efcc874d850.tar.gz gentoo-2-bda902d5b281819ae778cff0d61c5efcc874d850.tar.bz2 gentoo-2-bda902d5b281819ae778cff0d61c5efcc874d850.zip |
Add awk syntax #220821 by Donnie Berkholz and xml/css #163723 by Jan Vansteenkiste.
(Portage version: 2.2_pre5)
Diffstat (limited to 'app-editors/nano/files')
-rw-r--r-- | app-editors/nano/files/awk.nanorc | 38 | ||||
-rw-r--r-- | app-editors/nano/files/css.nanorc | 9 | ||||
-rw-r--r-- | app-editors/nano/files/xml.nanorc | 9 |
3 files changed, 56 insertions, 0 deletions
diff --git a/app-editors/nano/files/awk.nanorc b/app-editors/nano/files/awk.nanorc new file mode 100644 index 000000000000..696ab6ad727c --- /dev/null +++ b/app-editors/nano/files/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:]]+$" diff --git a/app-editors/nano/files/css.nanorc b/app-editors/nano/files/css.nanorc new file mode 100644 index 000000000000..62126e8a7833 --- /dev/null +++ b/app-editors/nano/files/css.nanorc @@ -0,0 +1,9 @@ +## Here is an example for css files. +## +syntax "css" "\.css$" +color brightred "." +color brightyellow start="\{" end="\}" +color brightwhite start=":" end="[;^\{]" +color brightblue ":active|:focus|:hover|:link|:visited|:link|:after|:before|$" +color brightblue start="\/\*" end="\\*/" +color green ";|:|\{|\}" diff --git a/app-editors/nano/files/xml.nanorc b/app-editors/nano/files/xml.nanorc new file mode 100644 index 000000000000..1f68c05341ad --- /dev/null +++ b/app-editors/nano/files/xml.nanorc @@ -0,0 +1,9 @@ +## Here is an example for xml files. +## +syntax "xml" "\.([jrs]html?|sgml?|xml|xslt?)$" +color green start="<" end=">" +color cyan "<[^> ]+" +color cyan ">" +color yellow start="<!DOCTYPE" end="[/]?>" +color yellow start="<!--" end="-->" +color red "&[^;]*;" |