diff --git a/ChangeLog b/ChangeLog index e4e88ecb..45f6b9e8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -23,6 +23,9 @@ CVS code - do_replace() - Blank out last_replace properly again just before displaying the "Replace" prompt. (DLR, found by Mike Frysinger) + doc/nanorc.sample: + - Add regexes for Bourne shell scripts. (Mike Frysinger, minor + tweaks by DLR) GNU nano 1.3.8 - 2005.06.30 - General: diff --git a/doc/nanorc.sample b/doc/nanorc.sample index 50538f40..7a0b5ad5 100644 --- a/doc/nanorc.sample +++ b/doc/nanorc.sample @@ -297,6 +297,19 @@ # color brightblue "//.*" # color brightblue start="/\*" end="\*/" +## Here is an example for Bourne shell scripts +## +# syntax "shellscript" "\.sh$" +# icolor brightgreen "^[_A-Z0-9]+\(\)" +# 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 "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)" +# color green "-(L|d|e|f|g|r|u|w|x)\>" +# color green "-(eq|ne|gt|lt|ge|le|s|n|z)\>" +# color brightblue "\<(cat|cd|chmod|chown|cp|echo|env|export|grep|install|let|ln|make|mkdir|mv|rm|sed|set|tar|touch|umask|unset)\>" +# icolor brightred "\$\{?[_A-Z0-9]+\}?" +# color yellow "#.*$" +# color brightyellow ""(\\.|[^\"])*"" "'(\\.|[^'])*'" + ## Here is an example for your .nanorc ## # syntax "nanorc" "(\.|/|)nanorc$"