--- gentoo.nanorc.orig 2009-03-30 10:10:53 +0300 +++ gentoo.nanorc 2009-03-30 10:33:33 +0300 @@ -20,10 +20,10 @@ color brightblue "\" "\" color brightblue "\" "\" "\" color brightblue "\" "\" "\" "\" "\<(has|best)_version\>" -color brightblue "\<(do|new)(ins|(games)?s?bin|doc|lib(|\.so|\.a)|man|info|exe|initd|confd|envd|pam|menu|icon)\>" +color brightblue "\<(do|new)(ins|(games)?s?bin|doc|lib(\.so|\.a)?|man|info|exe|initd|confd|envd|pam|menu|icon)\>" color brightblue "\" "\" -color brightblue "prepall(|docs|info|man|strip)" "prep(info|lib|lib\.(so|a)|man|strip|gamesdirs)" -color brightblue "\<(|doc|ins|exe)into\>" "\<(f|games)(owners|perms)\>" "\<(exe|ins|dir)opts\>" +color brightblue "prepall(docs|info|man|strip)?" "prep(info|lib|lib\.(so|a)|man|strip|gamesdirs)" +color brightblue "\<(doc|ins|exe)?into\>" "\<(f|games)(owners|perms)\>" "\<(exe|ins|dir)opts\>" ## Highlight common commands used in ebuilds color blue "\" "\<(awk|cat|cd|chmod|chown|cp|echo|env|export|find|e?grep|ln|mkdir|mv|rm|sed|set|tar|touch|unset|xargs)\>" ## Highlight comments (doesnt work that well) --- sh.nanorc.orig 2009-03-30 10:34:23 +0300 +++ sh.nanorc 2009-03-30 10:34:39 +0300 @@ -1,7 +1,7 @@ ## Here is an example for Bourne shell scripts. ## syntax "sh" "\.sh$" -header "^#!.*/(ba|k|pdk|)sh[-0-9_]*" +header "^#!.*/(ba|k|pdk)?sh[-0-9_]*" icolor brightgreen "^[0-9A-Z_]+\(\)" color green "\<(case|do|done|elif|else|esac|exit|fi|for|function|if|in|local|read|return|select|shift|then|time|until|while)\>" color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)"